On Mon, May 26, 2003 at 10:22:51PM -0700, Randolph Chung wrote: > [EMAIL PROTECTED]:~$ gcc -shared -fPIC -o blah.so blah.c > /tmp/ccC3fZeH.o(.text+0x1c): In function `call_foo': > : undefined reference to `foo'
This should fix it. Would someone mind applying it for me? I'm in transit at the moment and internet access is slow and flaky. 2.14 branch too, I guess. * elf32-hppa.c (elf32_hppa_relocate_section): Delete bogus undefined_symbol call. --- bfd/elf32-hppa.c~ 2003-05-08 12:08:31.000000000 +0930 +++ bfd/elf32-hppa.c 2003-05-28 10:44:19.000000000 +0930 @@ -3666,16 +3666,11 @@ elf32_hppa_relocate_section (output_bfd, } else if (h->elf.root.type == bfd_link_hash_undefweak) ; - else if (info->shared && !info->no_undefined + else if (info->shared + && !info->no_undefined && ELF_ST_VISIBILITY (h->elf.other) == STV_DEFAULT && h->elf.type != STT_PARISC_MILLI) - { - if (!((*info->callbacks->undefined_symbol) - (info, h->elf.root.root.string, input_bfd, - input_section, rel->r_offset, FALSE))) - return FALSE; - warned_undef = TRUE; - } + ; else { if (!((*info->callbacks->undefined_symbol) -- Alan Modra IBM OzLabs - Linux Technology Centre