mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
* elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
non-ELF sections.
This commit is contained in:
parent
0a05a8762f
commit
13161072f2
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user