diff options
author | Bob Wilson <bob.wilson@acm.org> | 2007-07-18 21:06:06 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2007-07-18 21:06:06 +0000 |
commit | 13161072f26833dbdc33d47fe1e0de82f20f47ea (patch) | |
tree | 210f11e51b012203b37cf82498da1af50998a20e /bfd/elf32-xtensa.c | |
parent | 0a05a8762fdc13187ae68e96bf8575466b092025 (diff) | |
download | gdb-13161072f26833dbdc33d47fe1e0de82f20f47ea.zip gdb-13161072f26833dbdc33d47fe1e0de82f20f47ea.tar.gz gdb-13161072f26833dbdc33d47fe1e0de82f20f47ea.tar.bz2 |
* elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
non-ELF sections.
Diffstat (limited to 'bfd/elf32-xtensa.c')
-rw-r--r-- | bfd/elf32-xtensa.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index 1182bd9..2531df5 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 |