Skip to content

Commit

Permalink
Added byte alignment for raw data segments
Browse files Browse the repository at this point in the history
  • Loading branch information
deadcast2 committed Mar 9, 2019
1 parent cbb92a4 commit c984359
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ld.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}});
Expand Down

0 comments on commit c984359

Please sign in to comment.