* 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)
commite08eb976ab377f8c5eab2e30fa8c6ec73e71bc15
tree6cba29d2b1ea86c90317e615e059f97c7e022eb3
parent907f6015c0fb47096744f82b9695de02a0c8db4d
* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Set dynindx
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