* elflink.h (elf_link_output_extsym): Don't output symbols from
authorAlan Modra <amodra@gmail.com>
Thu, 8 Aug 2002 00:20:16 +0000 (00:20 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 8 Aug 2002 00:20:16 +0000 (00:20 +0000)
SEC_EXCLUDE sections.

bfd/ChangeLog
bfd/elflink.h

index 54c4ae983b3a3e45938edd3f3e9e423afe59b171..41dc63ea619ada2bad40c412ebdd0e38cc1db2c7 100644 (file)
@@ -1,5 +1,8 @@
 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
 
+       * elflink.h (elf_link_output_extsym): Don't output symbols from
+       SEC_EXCLUDE sections.
+
        * aoutx.h (aout_link_write_symbols): Correct handling of warning syms.
 
 2002-08-07  Alan Modra  <amodra@bigpond.net.au>
        * elfarm-nabi.c: Do not include elf32-arm.h if
        ELFARM_NABI_C_INCLUDED is defined.
        * targets.c: Add bfd_elf32_{big|little}armqnx_vec.
-       
+
 2002-07-30  Nick Clifton  <nickc@redhat.com>
-       
+
        * po/sv.po: Updated Swedish translation.
 
 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
index 29c55514bb5fa9144dcc4e09407c3cac052923c8..59cc397a209c4edc073892d74e23b76c6e11bb17 100644 (file)
@@ -6342,7 +6342,7 @@ elf_link_output_extsym (h, data)
 
   /* If we're stripping it, then it was just a dynamic symbol, and
      there's nothing else to do.  */
-  if (strip)
+  if (strip || (input_sec->flags & SEC_EXCLUDE) != 0)
     return true;
 
   h->indx = bfd_get_symcount (finfo->output_bfd);