From: Nick Clifton Date: Mon, 7 Oct 2002 16:27:39 +0000 (+0000) Subject: Don't mark relocations in excluded sections. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5fe21b84cfe81666962a562c9cd95d928240588d;p=pf3gnuchains%2Fpf3gnuchains3x.git Don't mark relocations in excluded sections. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b589c5c796..4328d502a2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2002-10-07 Mark Elbrecht + + * cofflink.c (mark_relocs): Don't mark relocations in excluded sections. + 2002-10-07 Alan Modra * elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependent diff --git a/bfd/cofflink.c b/bfd/cofflink.c index eb9388fc71..c1302ee878 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -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