Hi redfish, > $ touch foo.dat > $ /usr/bin/ld -r -b binary -o /tmp/foo.o foo.dat > Segmentation fault (core dumped)
Ah - snafu - fixed by this patch. Cheers Nick bfd/ChangeLog 2016-08-23 Nick Clifton <ni...@redhat.com> * elf32-arm.c (elf32_arm_count_additional_relocs): Return zero if there is no arm data associated with the section. diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 1eba21b..4478238 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -18688,7 +18688,7 @@ elf32_arm_count_additional_relocs (asection *sec) { struct _arm_elf_section_data *arm_data; arm_data = get_arm_elf_section_data (sec); - return arm_data->additional_reloc_count; + return arm_data == NULL ? 0 : arm_data->additional_reloc_count; } /* Called to set the sh_flags, sh_link and sh_info fields of OSECTION which _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils