Don't mark relocations in excluded sections.
authorNick Clifton <nickc@redhat.com>
Mon, 7 Oct 2002 16:27:39 +0000 (16:27 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 7 Oct 2002 16:27:39 +0000 (16:27 +0000)
bfd/ChangeLog
bfd/cofflink.c

index b589c5c7967689a6ca6761b575fa93125aaba519..4328d502a205f2da2c9e59cddc9cef9c0581e8f1 100644 (file)
@@ -1,3 +1,7 @@
+2002-10-07  Mark Elbrecht  <snowball3@softhome.net>
+
+       * cofflink.c (mark_relocs): Don't mark relocations in excluded sections.
+
 2002-10-07  Alan Modra  <amodra@bigpond.net.au>
 
        * elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependent
index eb9388fc71ed5d4ad35adc687968317573715ce7..c1302ee878a28d0dc9dfbe6845ee04c47815a1c1 100644 (file)
@@ -1322,6 +1322,9 @@ mark_relocs (finfo, input_bfd)
 
       if ((a->flags & SEC_RELOC) == 0 || a->reloc_count  < 1)
        continue;
+      /* Don't mark relocs in excluded sections.  */
+      if (a->output_section == bfd_abs_section_ptr)
+       continue;
 
       /* Read in the relocs.  */
       internal_relocs = _bfd_coff_read_internal_relocs
This page took 0.034524 seconds and 4 git commands to generate.