diff options
author | Alan Modra <amodra@gmail.com> | 2001-08-09 14:25:59 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-08-09 14:25:59 +0000 |
commit | 5253f23b62d3cc15e2c9110ce711f0ee9b19feb3 (patch) | |
tree | 2f193b9161040c20b5b8f2e8cb9761f835a127af /ld/scripttempl/elf.sc | |
parent | 55ab10f0eed07a40d68672f9fa71d21ac9f83eb5 (diff) | |
download | fsf-binutils-gdb-5253f23b62d3cc15e2c9110ce711f0ee9b19feb3.zip fsf-binutils-gdb-5253f23b62d3cc15e2c9110ce711f0ee9b19feb3.tar.gz fsf-binutils-gdb-5253f23b62d3cc15e2c9110ce711f0ee9b19feb3.tar.bz2 |
* scripttempl/elf.sc: Move non-text .dynamic section before
.plt/.got/.sdata* group.
(OTHER_GOT_SECTIONS): Move to immediately after .got.
(OTHER_SDATA_SECTIONS): Add.
* emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
OTHER_GOT_SECTIONS.
* emulparams/crislinux.sh: Likewise.
* emulparams/elf32b4300.sh: Likewise.
* emulparams/elf32bmip.sh: Likewise.
* emulparams/elf32bmipn32.sh: Likewise.
* emulparams/elf32bsmip.sh: Likewise.
* emulparams/elf32btsmip.sh: Likewise.
* emulparams/elf32ebmip.sh: Likewise.
* emulparams/elf32elmip.sh: Likewise.
* emulparams/elf32l4300.sh: Likewise.
* emulparams/elf32lmip.sh: Likewise.
* emulparams/elf32lsmip.sh: Likewise.
* emulparams/elf32ltsmip.sh: Likewise.
* emulparams/elf64bmip.sh: Likewise.
* emulparams/elf64btsmip.sh: Likewise.
* emulparams/elf64ltsmip.sh: Likewise.
Diffstat (limited to 'ld/scripttempl/elf.sc')
-rw-r--r-- | ld/scripttempl/elf.sc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index 3c1bfb4..9c03dd6 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -17,7 +17,8 @@ # DATA_START_SYMBOLS - symbols that appear at the start of the # .data section. # OTHER_GOT_SYMBOLS - symbols defined just before .got. -# OTHER_GOT_SECTIONS - sections just after .got and .sdata. +# OTHER_GOT_SECTIONS - sections just after .got. +# OTHER_SDATA_SECTIONS - sections just after .sdata. # OTHER_BSS_SYMBOLS - symbols that appear at the start of the # .bss section besides __bss_start. # DATA_PLT - .plt should be in data segment, not text segment. @@ -308,14 +309,15 @@ SECTIONS .gcc_except_table : { *(.gcc_except_table) } ${WRITABLE_RODATA+${RODATA}} ${RELOCATING+${OTHER_READWRITE_SECTIONS}} + ${TEXT_DYNAMIC-${DYNAMIC}} ${RELOCATING+${CTOR}} ${RELOCATING+${DTOR}} ${DATA_PLT+${PLT}} ${RELOCATING+${OTHER_GOT_SYMBOLS}} .got ${RELOCATING-0} : { *(.got.plt) *(.got) } + ${RELOCATING+${OTHER_GOT_SECTIONS}} ${CREATE_SHLIB+${SDATA2}} ${CREATE_SHLIB+${SBSS2}} - ${TEXT_DYNAMIC-${DYNAMIC}} /* We want the small data sections together, so single-instruction offsets can access them all, and initialized data all before uninitialized, so we can shorten the on-disk segment size. */ @@ -326,7 +328,7 @@ SECTIONS ${RELOCATING+*(.sdata.*)} ${RELOCATING+*(.gnu.linkonce.s.*)} } - ${RELOCATING+${OTHER_GOT_SECTIONS}} + ${RELOCATING+${OTHER_SDATA_SECTIONS}} ${RELOCATING+_edata = .;} ${RELOCATING+PROVIDE (edata = .);} ${RELOCATING+__bss_start = .;} |