* elflink.h (elf_link_input_bfd): Don't ask for the merged offset
authorGeoffrey Keating <geoffk@geoffk.org>
Mon, 7 Jan 2002 17:55:37 +0000 (17:55 +0000)
committerGeoffrey Keating <geoffk@geoffk.org>
Mon, 7 Jan 2002 17:55:37 +0000 (17:55 +0000)
of a symbol in a section that will be deleted.

bfd/ChangeLog
bfd/elflink.h

index 15c720eadc3603b8b53c3dff6611a0b78f90853c..fcabcaaa8173d9654f0cce815543732536cad9e7 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-07  Geoffrey Keating  <geoffk@redhat.com>
+
+       * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
+       of a symbol in a section that will be deleted.
+
 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * po/es.po: New file: Spanish translation.
index 9a3bfd3885b88c1151d2f9c10f6bf3c8d0bb70cf..d465bccf4a079f254457f20cde16c39921fce725 100644 (file)
@@ -6375,6 +6375,8 @@ elf_link_input_bfd (finfo, input_bfd)
          isec = section_from_elf_index (input_bfd, isym->st_shndx);
          if (isec
              && elf_section_data (isec)->sec_info_type == ELF_INFO_TYPE_MERGE
+             && (finfo->info->relocateable
+                 || ! (isec->flags & SEC_EXCLUDE))
              && ELF_ST_TYPE (isym->st_info) != STT_SECTION)
            isym->st_value =
              _bfd_merged_section_offset (output_bfd, &isec,