diff options
author | Alan Modra <amodra@gmail.com> | 2003-11-25 02:14:25 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-11-25 02:14:25 +0000 |
commit | ee7de3e63127bc8661e1d76baa802ab348ce4aa8 (patch) | |
tree | a84a0ecfecfdb6c16b59f6bc4da45e51bc8bd36e /bfd/elf64-ppc.c | |
parent | e3ab1ac027bea9011450a5b57e13f9d121988977 (diff) | |
download | gdb-ee7de3e63127bc8661e1d76baa802ab348ce4aa8.zip gdb-ee7de3e63127bc8661e1d76baa802ab348ce4aa8.tar.gz gdb-ee7de3e63127bc8661e1d76baa802ab348ce4aa8.tar.bz2 |
* elf64-ppc.c (ppc_type_of_stub): Disallow stubs other than
ppc_stub_plt_call to symbols defined in shared libs.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r-- | bfd/elf64-ppc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 96e1d23..7e7e5ba 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -6070,8 +6070,9 @@ ppc_type_of_stub (asection *input_sec, } } - if (h->elf.root.type != bfd_link_hash_defined - && h->elf.root.type != bfd_link_hash_defweak) + if (!(h->elf.root.type == bfd_link_hash_defined + || h->elf.root.type == bfd_link_hash_defweak) + || h->elf.root.u.def.section->output_section == NULL) return ppc_stub_none; } |