diff options
author | Alan Modra <amodra@gmail.com> | 2015-07-20 14:29:37 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-07-20 14:29:37 +0930 |
commit | d9d11c361cc29bdac2d2d6c38bce329d25abf7af (patch) | |
tree | ec86672b839a2212b797d4a6a0daa906769fa280 /ld/emulparams | |
parent | e474ab13ec653d5d78489467f90669689191b31a (diff) | |
download | gdb-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/emulparams')
-rw-r--r-- | ld/emulparams/criself.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ld/emulparams/criself.sh b/ld/emulparams/criself.sh index 9c8ab31..dcddc0f 100644 --- a/ld/emulparams/criself.sh +++ b/ld/emulparams/criself.sh @@ -55,8 +55,9 @@ OTHER_BSS_END_SYMBOLS=' ' OTHER_END_SYMBOLS='PROVIDE (__end = .);' +INIT_ADDR='ALIGN (2)' + INIT_START=' - . = ALIGN(2); ___init__start = .; PROVIDE (___do_global_ctors = .); ' @@ -66,8 +67,9 @@ INIT_END=' PROVIDE (___init__end = .); ' +FINI_ADDR='ALIGN (2)' + FINI_START=' - . = ALIGN (2); ___fini__start = .; PROVIDE (___do_global_dtors = .); ' |