2011-11-03 Tristan Gingold <gingold@adacore.com>

* scripttempl/aix.sc: Consider header size for .text and .data
	alignment.
This commit is contained in:
Tristan Gingold 2011-11-03 11:53:39 +00:00
parent 3f3cddf146
commit bbd0c8e204
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-11-03 Tristan Gingold <gingold@adacore.com>
* scripttempl/aix.sc: Consider header size for .text and .data
alignment.
2011-11-02 Tristan Gingold <gingold@adacore.com> 2011-11-02 Tristan Gingold <gingold@adacore.com>
* emultempl/aix.em (read_file_list): New function. * emultempl/aix.em (read_file_list): New function.

View File

@ -11,7 +11,7 @@ SECTIONS
{ {
.pad 0 : { *(.pad) } .pad 0 : { *(.pad) }
. = 0x10000000; . = ALIGN (0x10000000 + SIZEOF_HEADERS, 32);
.text ${RELOCATING-0} : { .text ${RELOCATING-0} : {
${RELOCATING+PROVIDE (_text = .);} ${RELOCATING+PROVIDE (_text = .);}
*(.text) *(.text)
@ -24,7 +24,8 @@ SECTIONS
*(.tb) *(.tb)
${RELOCATING+PROVIDE (_etext = .);} ${RELOCATING+PROVIDE (_etext = .);}
} }
. = ALIGN (0x10000000);
. = ALIGN (ALIGN (0x10000000) + (. & 0xfff), 32);
.data . : { .data . : {
${RELOCATING+PROVIDE (_data = .);} ${RELOCATING+PROVIDE (_data = .);}
*(.data) *(.data)