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 50aa25f..98db551 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 cce2947..905da42 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)