diff options
author | Lai Wei-Chih <Robert.Lai@mediatek.com> | 2014-08-11 11:03:02 +0800 |
---|---|---|
committer | Lai Wei-Chih <Robert.Lai@mediatek.com> | 2014-08-14 10:17:59 +0800 |
commit | 7e31aedaa6765f1d2b5f545de30f5b202ad54114 (patch) | |
tree | 2713331bc3df30b69ffc462723bb9d0a3a547607 /binutils-2.24/ld | |
parent | 8390634fd5fb311f01b82ba35a8db4b40b983cc8 (diff) | |
download | toolchain_binutils-7e31aedaa6765f1d2b5f545de30f5b202ad54114.zip toolchain_binutils-7e31aedaa6765f1d2b5f545de30f5b202ad54114.tar.gz toolchain_binutils-7e31aedaa6765f1d2b5f545de30f5b202ad54114.tar.bz2 |
[2.24][2.25] Fix __preinit_array_start not aligned properly in 64-bit.
For 64-bit address space, it should be 8-bytes aligned.
'ALIGNMENT' will be expanded to '64 / 8' for 64-bit and '32 / 8' for 32-bit.
Change-Id: I7bbbf04a9b4e68a342201ec7c04f67497e3fa3a1
Diffstat (limited to 'binutils-2.24/ld')
-rw-r--r-- | binutils-2.24/ld/scripttempl/elf.sc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils-2.24/ld/scripttempl/elf.sc b/binutils-2.24/ld/scripttempl/elf.sc index b1e6906..9a29622 100644 --- a/binutils-2.24/ld/scripttempl/elf.sc +++ b/binutils-2.24/ld/scripttempl/elf.sc @@ -556,7 +556,7 @@ cat <<EOF could instead move the label definition inside the section, but the linker would then create the section even if it turns out to be empty, which isn't pretty. */ - . = ALIGN(32 / 8); + ${RELOCATING+. = ALIGN(${ALIGNMENT});} ${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__preinit_array_start = .);}} .preinit_array ${RELOCATING-0} : { |