[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: failure of ld bootstrap test with -static on hppa-linux
From: |
Alan Modra |
Subject: |
Re: failure of ld bootstrap test with -static on hppa-linux |
Date: |
Fri, 10 May 2002 09:27:00 +0930 |
User-agent: |
Mutt/1.3.25i |
On Thu, May 09, 2002 at 02:30:41PM -0400, John David Anglin wrote:
> The problem is a NULL pointer:
>
> (gdb) p ((struct elf32_hppa_stub_hash_entry *) gen_entry)->target_section
> $3 = (struct sec *) 0x0
>
> Does this ring any bells as to what might be happening?
It's almost certainly
2002-05-04 Alan Modra <address@hidden>
* elf32-hppa.c
[snip]
Look for
stubs on undefined syms too.
This was a merge from the powerpc64 stub support. Could you see if
reverting this hunk fixes the problem?
Index: elf32-hppa.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-hppa.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -p -r1.79 -r1.80
--- elf32-hppa.c 28 Apr 2002 12:29:46 -0000 1.79
+++ elf32-hppa.c 4 May 2002 02:06:22 -0000 1.80
@@ -3052,19 +3128,9 @@ elf32_hppa_size_stubs (output_bfd, stub_
+ sym_sec->output_section->vma);
}
else if (hash->elf.root.type == bfd_link_hash_undefweak)
- {
- if (! info->shared)
- continue;
- }
+ ;
else if (hash->elf.root.type == bfd_link_hash_undefined)
- {
- if (! (info->shared
- && !info->no_undefined
- && (ELF_ST_VISIBILITY (hash->elf.other)
- == STV_DEFAULT)
- && hash->elf.type != STT_PARISC_MILLI))
- continue;
- }
+ ;
else
{
bfd_set_error (bfd_error_bad_value);
--
Alan Modra
IBM OzLabs - Linux Technology Centre