diff options
author | Alan Modra <amodra@gmail.com> | 2002-05-10 02:03:47 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-05-10 02:03:47 +0000 |
commit | c432ba1a88626b52643960948093f551f53ec58e (patch) | |
tree | c9d3403be84e88f43c846dee887873de7edc3c51 /bfd | |
parent | 8120c9d5cc29f4321197b2b2d0ad9f3eca410dfc (diff) | |
download | gdb-c432ba1a88626b52643960948093f551f53ec58e.zip gdb-c432ba1a88626b52643960948093f551f53ec58e.tar.gz gdb-c432ba1a88626b52643960948093f551f53ec58e.tar.bz2 |
* elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
don't look for stubs on all undefined syms.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-hppa.c | 14 |
2 files changed, 17 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d486aa0..20f8a23 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-05-10 Alan Modra <amodra@bigpond.net.au> + + * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04, + don't look for stubs on all undefined syms. + 2002-05-09 Alan Modra <amodra@bigpond.net.au> * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete. diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c index f0fd549..4dc7e9b 100644 --- a/bfd/elf32-hppa.c +++ b/bfd/elf32-hppa.c @@ -3128,9 +3128,19 @@ elf32_hppa_size_stubs (output_bfd, stub_bfd, info, multi_subspace, group_size, + 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); |