PR 26623
* elf-bfd.h (elf_symbol_from): Exclude synthetic symbols.
+2020-09-16 Alan Modra <amodra@gmail.com>
+
+ PR 26623
+ * elf-bfd.h (elf_symbol_from): Exclude synthetic symbols.
+
2020-09-15 H.J. Lu <hongjiu.lu@intel.com>
* coff-x86_64.c (howto_table): Display PE relocation names.
};
#define elf_symbol_from(ABFD,S) \
- (((S)->the_bfd != NULL \
+ ((((S)->flags & BSF_SYNTHETIC) == 0 \
+ && (S)->the_bfd != NULL \
&& (S)->the_bfd->xvec->flavour == bfd_target_elf_flavour \
&& (S)->the_bfd->tdata.elf_obj_data != 0) \
? (elf_symbol_type *) (S) \