diff options
author | Bob Wilson <bob.wilson@acm.org> | 2006-10-12 21:56:19 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2006-10-12 21:56:19 +0000 |
commit | a77dc2cc26f789c3ee32ca4666750d27af07a6b9 (patch) | |
tree | 6ec27222509b02e59e9c587b0c304745151331d3 /bfd/elf32-xtensa.c | |
parent | 8c008720ebce20b40126b31392808cfd5a2408bc (diff) | |
download | gdb-a77dc2cc26f789c3ee32ca4666750d27af07a6b9.zip gdb-a77dc2cc26f789c3ee32ca4666750d27af07a6b9.tar.gz gdb-a77dc2cc26f789c3ee32ca4666750d27af07a6b9.tar.bz2 |
bfd/
* elf32-xtensa.c (elf_xtensa_action_discarded): New.
(elf_backend_action_discarded): Define.
ld/
* emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Check
for linkonce XCC exception tables (".e" and ".h").
Diffstat (limited to 'bfd/elf32-xtensa.c')
-rw-r--r-- | bfd/elf32-xtensa.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index a5d76b2..2a6c695 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c @@ -2969,6 +2969,19 @@ elf_xtensa_ignore_discarded_relocs (asection *sec) return xtensa_is_property_section (sec); } + +static unsigned int +elf_xtensa_action_discarded (asection *sec) +{ + if (strcmp (".xt_except_table", sec->name) == 0) + return 0; + + if (strcmp (".xt_except_desc", sec->name) == 0) + return 0; + + return _bfd_elf_default_action_discarded (sec); +} + /* Support for core dump NOTE sections. */ @@ -9832,5 +9845,6 @@ static const struct bfd_elf_special_section elf_xtensa_special_sections[] = #define elf_backend_relocate_section elf_xtensa_relocate_section #define elf_backend_size_dynamic_sections elf_xtensa_size_dynamic_sections #define elf_backend_special_sections elf_xtensa_special_sections +#define elf_backend_action_discarded elf_xtensa_action_discarded #include "elf32-target.h" |