* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Set dynindx
authorIan Lance Taylor <ian@airs.com>
Sat, 31 May 1997 01:57:27 +0000 (01:57 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 31 May 1997 01:57:27 +0000 (01:57 +0000)
for a section even if it is not loaded.
Otherwise compiling this
static char bar; char *foo() { return &bar; }
without -fpic and then doing ld -shared OBJECT dumps core.

bfd/ChangeLog

index d61e9c7feaf877aac9945dd0ecb1569ff5477b6b..810032b797b87ce88caefb41e189882ee09e388c 100644 (file)
@@ -1,5 +1,8 @@
 Fri May 30 12:46:27 1997  Ian Lance Taylor  <ian@cygnus.com>
 
+       * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Set dynindx
+       for a section even if it is not loaded.
+
        * cofflink.c (coff_link_add_symbols): If PE file, don't subtract
        section VMA.
        (_bfd_coff_link_input_bfd): Separate section VMA handling for