From 98790d3a95fc58eb3e274a3cebb3e8f93a0ea528 Mon Sep 17 00:00:00 2001 From: Catherine Moore Date: Thu, 28 Jan 1999 17:17:16 +0000 Subject: [PATCH] * elflink.h (elf_link_output_sym): Zero syms which are part of sections which have been excluded. --- bfd/ChangeLog | 5 +++++ bfd/elflink.h | 2 ++ 2 files changed, 7 insertions(+) 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, -- 2.30.2