diff options
author | Catherine Moore <clm@redhat.com> | 1999-01-28 17:17:16 +0000 |
---|---|---|
committer | Catherine Moore <clm@redhat.com> | 1999-01-28 17:17:16 +0000 |
commit | 98790d3a95fc58eb3e274a3cebb3e8f93a0ea528 (patch) | |
tree | df3a1cf83e5a395e6620a792b08ca6c4c9d21340 | |
parent | 7f1efb4486019c564d9ba1dc8b6a9e1fa201ab1f (diff) | |
download | gdb-98790d3a95fc58eb3e274a3cebb3e8f93a0ea528.zip gdb-98790d3a95fc58eb3e274a3cebb3e8f93a0ea528.tar.gz gdb-98790d3a95fc58eb3e274a3cebb3e8f93a0ea528.tar.bz2 |
* elflink.h (elf_link_output_sym): Zero syms which are
part of sections which have been excluded.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elflink.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2e458b9..50b246c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 28 11:08:16 1999 Catherine Moore <clm@cygnus.com> + + * 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 <scox@cygnus.com> * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC diff --git a/bfd/elflink.h b/bfd/elflink.h index 1aea0d9..6b263ec 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, |