diff options
author | Lai Wei-Chih <Robert.Lai@mediatek.com> | 2014-08-11 11:03:02 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2014-12-09 19:53:12 +0800 |
commit | bbff162609624c737f72b070e2b53aeb5ed1e958 (patch) | |
tree | f42038dec8df376b576fd68683d04971565d1d48 /binutils-2.25 | |
parent | d6a74de3e11d305ca3159263839e6974c5c46d6e (diff) | |
download | toolchain_binutils-bbff162609624c737f72b070e2b53aeb5ed1e958.zip toolchain_binutils-bbff162609624c737f72b070e2b53aeb5ed1e958.tar.gz toolchain_binutils-bbff162609624c737f72b070e2b53aeb5ed1e958.tar.bz2 |
[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: Ide4cda93afae0535ccc30bff53c67b0d637a4198
Diffstat (limited to 'binutils-2.25')
-rw-r--r-- | binutils-2.25/ld/scripttempl/elf.sc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils-2.25/ld/scripttempl/elf.sc b/binutils-2.25/ld/scripttempl/elf.sc index 60c7675..2c73fdc 100644 --- a/binutils-2.25/ld/scripttempl/elf.sc +++ b/binutils-2.25/ld/scripttempl/elf.sc @@ -567,7 +567,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} : { |