summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2007-07-18 21:06:06 +0000
committerBob Wilson <bob.wilson@acm.org>2007-07-18 21:06:06 +0000
commit1442d708c8c18dfbd683efde34c84f854bdddaee (patch)
tree928c2e564e1aad46c970a941b1be8c1eb3ec4a76 /bfd
parent847a95ff43b30d740bc8dc7bab04a7fa6de480ee (diff)
downloadgdb-1442d708c8c18dfbd683efde34c84f854bdddaee.tar.gz
* elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
non-ELF sections.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-xtensa.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 488344320ee..81a8fd487e1 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2007-07-18 Bob Wilson <bob.wilson@acm.org>
+ * elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
+ non-ELF sections.
+
+2007-07-18 Bob Wilson <bob.wilson@acm.org>
+
* elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Get section
vma and size for dynamic tags from the output sections.
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index 1182bd9de6d..2531df5810d 100644
--- a/bfd/elf32-xtensa.c
+++ b/bfd/elf32-xtensa.c
@@ -9805,6 +9805,11 @@ xtensa_callback_required_dependence (bfd *abfd,
(*callback) (sec, sec_size, sgotplt, 0, closure);
}
+ /* Only ELF files are supported for Xtensa. Check here to avoid a segfault
+ when building uclibc, which runs "ld -b binary /dev/null". */
+ if (bfd_get_flavour (abfd) != bfd_target_elf_flavour)
+ return ok;
+
internal_relocs = retrieve_internal_relocs (abfd, sec,
link_info->keep_memory);
if (internal_relocs == NULL