From f9fb0d8f248e0afc6ef145d3f97d5941cef73ca1 Mon Sep 17 00:00:00 2001 From: James Benton Date: Fri, 14 Sep 2018 08:45:05 +0100 Subject: [PATCH] Remove alignment for data sections from linker script. --- share/wut.ld | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/share/wut.ld b/share/wut.ld index da1ce1c..21e403d 100644 --- a/share/wut.ld +++ b/share/wut.ld @@ -31,7 +31,7 @@ SECTIONS } > codemem . = ORIGIN(datamem); - .rodata ALIGN(32) : { + .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) @@ -65,37 +65,33 @@ SECTIONS *(.tm_clone_table) } > datamem - .data ALIGN(32) : { + .data : { *(.data) *(.data.*) *(.gnu.linkonce.d.*) SORT(CONSTRUCTORS) - . = ALIGN(32); __sdata_start = .; *(.sdata) *(.sdata.*) *(.gnu.linkonce.s.*) - . = ALIGN(32); __sdata_end = .; __sdata2_start = .; *(.sdata2) *(.sdata2.*) *(.gnu.linkonce.s2.*) - . = ALIGN(32); __sdata2_end = .; } > datamem __bss_start = .; - .bss ALIGN(64) (NOLOAD) : { + .bss (NOLOAD) : { *(.dynbss) *(.bss) *(.bss.*) *(.gnu.linkonce.b.*) *(COMMON) - . = ALIGN(64); __sbss_start = .; *(.dynsbss) *(.sbss) @@ -104,14 +100,11 @@ SECTIONS *(.scommon) __sbss_end = .; - . = ALIGN(64); __sbss2_start = .; *(.sbss2) *(.sbss2.*) *(.gnu.linkonce.sb2.*) __sbss2_end = .; - - . = ALIGN(32); } __bss_end = .;