* elflink.h (elf_link_output_sym): Zero syms which are
authorCatherine Moore <clm@redhat.com>
Thu, 28 Jan 1999 17:17:16 +0000 (17:17 +0000)
committerCatherine Moore <clm@redhat.com>
Thu, 28 Jan 1999 17:17:16 +0000 (17:17 +0000)
       part of sections which have been excluded.

bfd/ChangeLog
bfd/elflink.h

index 2e458b929b031b5fa7f033ead5aa4ae0c1f6b08d..50b246c44c8bfa2e6b79ea27931dab5915ee67f6 100644 (file)
@@ -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
index 1aea0d94758c93309b6a275dab07497db699fcbd..6b263ec71972c3558acaaf8ea3d07b4c14df7f29 100644 (file)
@@ -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,