From: Alan Modra Date: Mon, 30 Oct 2017 01:32:42 +0000 (+1030) Subject: frv-elf --gc-sections failures X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a60fff76279225bcb2eeaeb9f89b02bba8d3a126;p=thirdparty%2Fbinutils-gdb.git frv-elf --gc-sections failures git commit 81742b83e9 exposed an frv-elf bug, with the object id not matching the hash table id. * elf32-frv.c (ELF_TARGET_ID): Don't define for generic elf target. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a86ad613ea9..97c4b1d9e88 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,6 +1,10 @@ 2017-11-01 Alan Modra Apply from master + 2017-10-30 Alan Modra + * elf32-frv.c (ELF_TARGET_ID): Don't define for generic + elf target. + 2017-10-30 Alan Modra * elflink.c (elf_gc_sweep): Test elf_object_id in addition to relocs_compatible. diff --git a/bfd/elf32-frv.c b/bfd/elf32-frv.c index ef609ff5406..67b3c6a9ebf 100644 --- a/bfd/elf32-frv.c +++ b/bfd/elf32-frv.c @@ -6773,7 +6773,6 @@ elf32_frv_grok_psinfo (bfd *abfd, Elf_Internal_Note *note) return TRUE; } #define ELF_ARCH bfd_arch_frv -#define ELF_TARGET_ID FRV_ELF_DATA #define ELF_MACHINE_CODE EM_CYGNUS_FRV #define ELF_MAXPAGESIZE 0x1000 @@ -6812,6 +6811,8 @@ elf32_frv_grok_psinfo (bfd *abfd, Elf_Internal_Note *note) #include "elf32-target.h" +#undef ELF_TARGET_ID +#define ELF_TARGET_ID FRV_ELF_DATA #undef ELF_MAXPAGESIZE #define ELF_MAXPAGESIZE 0x4000