summaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/aix.sc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ld/scripttempl/aix.sc b/ld/scripttempl/aix.sc
index d592dbe59f..adc5de6bae 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)