https://sourceware.org/bugzilla/show_bug.cgi?id=27659
--- Comment #13 from Gianfranco <costamagnagianfranco at yahoo dot it> --- sure, maybe something like this: commit 8384fb8f0c3c451f7aa8164fc87e162eb9816925 Author: Alan Modra <****@*****.com> Date: Fri Sep 22 13:16:45 2006 +0000 * elfcode.h (elf_swap_symbol_in): Return bfd_boolean. Don't abort on error. * elf-bfd.h (elf_size_info <swap_symbol_in>): Adjust decl. (bfd_elf32_swap_symbol_in, bfd_elf64_swap_symbol_in): Likewise. * elf.c (bfd_elf_get_elf_syms): Test return of swap_symbol_in, and report error. * elf32-arm.c (elf32_arm_swap_symbol_in): Return bfd_boolean. diff --git a/bfd/elfcode.h b/bfd/elfcode.h index a285a133088..d58cf344718 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -166,7 +166,7 @@ static void elf_debug_file (Elf_Internal_Ehdr *); /* Translate an ELF symbol in external format into an ELF symbol in internal format. */ -void +bfd_boolean elf_swap_symbol_in (bfd *abfd, const void *psrc, const void *pshn, @@ -188,9 +188,10 @@ elf_swap_symbol_in (bfd *abfd, if (dst->st_shndx == SHN_XINDEX) { if (shndx == NULL) - abort (); + return FALSE; dst->st_shndx = H_GET_32 (abfd, shndx->est_shndx); } + return TRUE; } /* Translate an ELF symbol in internal format into an ELF symbol in external needs to be done on elf_swap_symbol_out too? -- You are receiving this mail because: You are on the CC list for the bug.