diff options
author | Nick Clifton <nickc@redhat.com> | 2002-10-07 16:27:39 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-10-07 16:27:39 +0000 |
commit | c6e9547f54fe78b8a1d70b0ed9191afdaff4fb37 (patch) | |
tree | 3a3ef8ed224671a134e2b837bc30c58a1158eb8e | |
parent | 800920de34eed6ef1cdfd1414a4961f2eb0c6a37 (diff) | |
download | gdb-c6e9547f54fe78b8a1d70b0ed9191afdaff4fb37.tar.gz |
Don't mark relocations in excluded sections.
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/cofflink.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b589c5c7967..4328d502a20 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/cofflink.c b/bfd/cofflink.c index eb9388fc71e..c1302ee878a 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 |