From c9843590c2e907ba28ca9ea2ecc3c64c805b28ab Mon Sep 17 00:00:00 2001 From: deadcast Date: Sat, 9 Mar 2019 11:52:45 -0800 Subject: [PATCH] Added byte alignment for raw data segments --- ld.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ld.go b/ld.go index fbd1598..6c1ec77 100644 --- a/ld.go +++ b/ld.go @@ -100,10 +100,12 @@ SECTIONS { _{{.Name}}SegmentRomStart = _RomSize; ..{{.Name}} : AT(_RomSize) { + . = ALIGN(0x10); _{{.Name}}SegmentDataStart = .; {{range .Includes -}} "{{.}}.o" {{end}} + . = ALIGN(0x10); _{{.Name}}SegmentDataEnd = .; } > ram _RomSize += SIZEOF(..{{.Name}});