diff options
author | Bob Wilson <bob.wilson@acm.org> | 2003-07-10 19:01:48 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2003-07-10 19:01:48 +0000 |
commit | e901de89515172c86d710e23ea506f9365c42a1d (patch) | |
tree | fe3c6928958a87ae428817dd6bb2f980e647527a /ld | |
parent | 75e21f08dc057f373ed4b9c76ddc54b2e3a0ee9d (diff) | |
download | gdb-e901de89515172c86d710e23ea506f9365c42a1d.zip gdb-e901de89515172c86d710e23ea506f9365c42a1d.tar.gz gdb-e901de89515172c86d710e23ea506f9365c42a1d.tar.bz2 |
bfd ChangeLog:
* elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Create new
.got.loc section. Do not set SEC_ALLOC or SEC_LOAD flags for the
.xt.lit.plt section.
(elf_xtensa_size_dynamic_sections): Set size of the .got.loc section
and allocate memory for it.
(elf_xtensa_combine_prop_entries): Copy contents of .xt.lit output
section to the .got.loc section.
(elf_xtensa_finish_dynamic_sections): Fix up call to
elf_xtensa_combine_prop_entries and set DT_XTENSA_GOT_LOC_OFF to
the address of .got.loc.
(relax_property_section): Shrink .got.loc to match changes in any
literal table section.
(xtensa_is_property_section): Change to match
xtensa_get_property_section_name.
(xtensa_is_littable_section): New.
ld ChangeLog:
* emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
with new .got.loc section.
(OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
non-relocating links.
(OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
sections separate for non-relocating links; likewise for .xt.insn.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 9 | ||||
-rw-r--r-- | ld/emulparams/elf32xtensa.sh | 18 |
2 files changed, 18 insertions, 9 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 8c12846..19d4753 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,12 @@ +2003-07-10 Bob Wilson <bob.wilson@acm.org> + + * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit + with new .got.loc section. + (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for + non-relocating links. + (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce + sections separate for non-relocating links; likewise for .xt.insn. + 2003-07-10 Alexandre Oliva <aoliva@redhat.com> 2001-08-22 Alexandre Oliva <aoliva@redhat.com> diff --git a/ld/emulparams/elf32xtensa.sh b/ld/emulparams/elf32xtensa.sh index 12e2882..f51ed38 100644 --- a/ld/emulparams/elf32xtensa.sh +++ b/ld/emulparams/elf32xtensa.sh @@ -16,17 +16,17 @@ GENERATE_SHLIB_SCRIPT=yes GENERATE_COMBRELOC_SCRIPT=yes NO_SMALL_DATA=yes OTHER_READONLY_SECTIONS=' + .got.loc : { *(.got.loc) } .xt_except_table : { KEEP (*(.xt_except_table)) } - .xt.lit : { *(.xt.lit*) *(.gnu.linkonce.p*) } ' -OTHER_READWRITE_SECTIONS=' +OTHER_READWRITE_SECTIONS=" .xt_except_desc : { - *(.xt_except_desc) - *(.gnu.linkonce.h.*) - *(.xt_except_desc_end) + *(.xt_except_desc${RELOCATING+ .gnu.linkonce.h.*}) + ${RELOCATING+*(.xt_except_desc_end)} } -' -OTHER_SECTIONS=' - .xt.insn : { *(.xt.insn) *(.gnu.linkonce.x*) } -' +" +OTHER_SECTIONS=" + .xt.lit : { *(.xt.lit${RELOCATING+ .xt.lit.* .gnu.linkonce.p.*}) } + .xt.insn : { *(.xt.insn${RELOCATING+ .gnu.linkonce.x.*}) } +" |