From: Catherine Moore Date: Thu, 28 Jan 1999 17:17:16 +0000 (+0000) Subject: * elflink.h (elf_link_output_sym): Zero syms which are X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98790d3a95fc;p=binutils-gdb.git * elflink.h (elf_link_output_sym): Zero syms which are part of sections which have been excluded. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2e458b929b0..50b246c44c8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 28 11:08:16 1999 Catherine Moore + + * elflink.h (elf_link_output_sym): Zero syms which are + part of sections which have been excluded. + Wed Jan 27 13:35:35 1999 Stan Cox * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC diff --git a/bfd/elflink.h b/bfd/elflink.h index 1aea0d94758..6b263ec7197 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -4325,6 +4325,8 @@ elf_link_output_sym (finfo, name, elfsym, input_sec) if (name == (const char *) NULL || *name == '\0') elfsym->st_name = 0; + else if (input_sec->flags & SEC_EXCLUDE) + elfsym->st_name = 0; else { elfsym->st_name = (unsigned long) _bfd_stringtab_add (finfo->symstrtab,