diff options
author | Alan Modra <amodra@bigpond.net.au> | 2002-10-11 04:36:13 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2002-10-11 04:36:13 +0000 |
commit | 976c92ec4249ff7e307bcf278a49e90f78f0d768 (patch) | |
tree | eb3df0710ff987c64d216678ba7a068cbf8b4f4e | |
parent | 051ff4a793cb3585011b60a719f1a7be5f81242b (diff) | |
download | gdb-976c92ec4249ff7e307bcf278a49e90f78f0d768.tar.gz |
* elf64-ppc.c (edit_opd): Only zero opd syms when function is
completely removed.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-ppc.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 599d2d735b2..cceffd70c35 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-10-11 Alan Modra <amodra@bigpond.net.au> + + * elf64-ppc.c (edit_opd): Only zero opd syms when function is + completely removed. + 2002-10-10 Stephen Clarke <stephen.clarke@superh.com> * elf32-sh.c (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le): diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 37b30e6278a..909314f082b 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -3762,7 +3762,7 @@ edit_opd (obfd, info) || sym_sec->output_section == bfd_abs_section_ptr); if (skip) { - if (h != NULL) + if (h != NULL && sym_sec->owner == ibfd) { /* Arrange for the function descriptor sym to be dropped. */ |