aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-11-03 11:53:39 +0000
committerTristan Gingold <gingold@adacore.com>2011-11-03 11:53:39 +0000
commitbbd0c8e20472f6e6d685b547896febacac8d0219 (patch)
tree9b059d3f299c5f683f71875d1b674d91dd010101 /ld/scripttempl
parent3f3cddf146bb20f8222ce6ed8c8ffc6ee9c59124 (diff)
downloadgdb-bbd0c8e20472f6e6d685b547896febacac8d0219.zip
gdb-bbd0c8e20472f6e6d685b547896febacac8d0219.tar.gz
gdb-bbd0c8e20472f6e6d685b547896febacac8d0219.tar.bz2
2011-11-03 Tristan Gingold <gingold@adacore.com>
* scripttempl/aix.sc: Consider header size for .text and .data alignment.
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 d592dbe..adc5de6 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)