From: Tristan Gingold Date: Thu, 3 Nov 2011 11:53:39 +0000 (+0000) Subject: 2011-11-03 Tristan Gingold X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bbd0c8e20472;p=binutils-gdb.git 2011-11-03 Tristan Gingold * scripttempl/aix.sc: Consider header size for .text and .data alignment. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 2042763c229..8d610d3ca01 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2011-11-03 Tristan Gingold + + * scripttempl/aix.sc: Consider header size for .text and .data + alignment. + 2011-11-02 Tristan Gingold * emultempl/aix.em (read_file_list): New function. diff --git a/ld/scripttempl/aix.sc b/ld/scripttempl/aix.sc index d592dbe59f1..adc5de6bae6 100644 --- a/ld/scripttempl/aix.sc +++ b/ld/scripttempl/aix.sc @@ -11,7 +11,7 @@ SECTIONS { .pad 0 : { *(.pad) } - . = 0x10000000; + . = ALIGN (0x10000000 + SIZEOF_HEADERS, 32); .text ${RELOCATING-0} : { ${RELOCATING+PROVIDE (_text = .);} *(.text) @@ -24,7 +24,8 @@ SECTIONS *(.tb) ${RELOCATING+PROVIDE (_etext = .);} } - . = ALIGN (0x10000000); + + . = ALIGN (ALIGN (0x10000000) + (. & 0xfff), 32); .data . : { ${RELOCATING+PROVIDE (_data = .);} *(.data)