aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-07-20 14:29:37 +0930
committerAlan Modra <amodra@gmail.com>2015-07-20 14:29:37 +0930
commitd9d11c361cc29bdac2d2d6c38bce329d25abf7af (patch)
treeec86672b839a2212b797d4a6a0daa906769fa280 /ld/scripttempl
parente474ab13ec653d5d78489467f90669689191b31a (diff)
downloadgdb-d9d11c361cc29bdac2d2d6c38bce329d25abf7af.zip
gdb-d9d11c361cc29bdac2d2d6c38bce329d25abf7af.tar.gz
gdb-d9d11c361cc29bdac2d2d6c38bce329d25abf7af.tar.bz2
ALIGN change affects cris scripts
More fallout from a2c59f28. This one could have been fixed by simply using ". = ALIGN (ABSOLUTE (.), 2);" but it's nicer to align the section. * emulparams/criself.sh (INIT_ADDR, FINI_ADDR): Define. (INIT_START, FINI_START): Don't ALIGN. * scriptempl/elf.sc (.init, .fini): Apply INIT_ADDR/FINI_ADDR.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/elf.sc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index 5a15a68..37e4351 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -474,7 +474,7 @@ emit_dyn()
test -n "${NON_ALLOC_DYN}${SEPARATE_CODE}" || emit_dyn
cat <<EOF
- .init ${RELOCATING-0} :
+ .init ${RELOCATING-0}${RELOCATING+${INIT_ADDR}} :
{
${RELOCATING+${INIT_START}}
KEEP (*(SORT_NONE(.init)))
@@ -495,7 +495,7 @@ cat <<EOF
*(.gnu.warning)
${RELOCATING+${OTHER_TEXT_SECTIONS}}
} ${FILL}
- .fini ${RELOCATING-0} :
+ .fini ${RELOCATING-0}${RELOCATING+${FINI_ADDR}} :
{
${RELOCATING+${FINI_START}}
KEEP (*(SORT_NONE(.fini)))