Mon Jun 9 12:34:21 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
authorIan Lance Taylor <ian@airs.com>
Mon, 9 Jun 1997 16:36:08 +0000 (16:36 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 9 Jun 1997 16:36:08 +0000 (16:36 +0000)
* elflink.h (elf_link_add_object_symbols): Ignore relocations of
sections that will be discarded.

bfd/ChangeLog
bfd/elflink.h

index 50aa25fec8c7af7a613f29c0f9e2dd0992b2a320..98db551530d1d6272417d8bb45e4819564a8296a 100644 (file)
@@ -1,3 +1,8 @@
+Mon Jun  9 12:34:21 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
+
+       * elflink.h (elf_link_add_object_symbols): Ignore relocations of
+       sections that will be discarded.
+
 1997-06-06 22:58  Ulrich Drepper  <drepper@cygnus.com>
 
        * elflink.h (elf_link_find_version_dependencies): When searching
index cce2947797d20d891538b037a315ae46fd6f8077..905da426c5b962395c337b28a0203c19708ae279 100644 (file)
@@ -1586,7 +1586,8 @@ elf_link_add_object_symbols (abfd, info)
          if ((o->flags & SEC_RELOC) == 0
              || o->reloc_count == 0
              || ((info->strip == strip_all || info->strip == strip_debugger)
-                 && (o->flags & SEC_DEBUGGING) != 0))
+                 && (o->flags & SEC_DEBUGGING) != 0)
+             || bfd_is_abs_section (o->output_section))
            continue;
 
          internal_relocs = (NAME(_bfd_elf,link_read_relocs)