]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elf64-ppc.c (edit_opd): Only zero opd syms when function is
authorAlan Modra <amodra@gmail.com>
Fri, 11 Oct 2002 04:37:41 +0000 (04:37 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 11 Oct 2002 04:37:41 +0000 (04:37 +0000)
completely removed.

bfd/ChangeLog
bfd/elf64-ppc.c

index a120be3569a9435a3edfb5511908c4101542bf2c..1d3c16144a1182e6c231145795f0d04319f5296f 100644 (file)
@@ -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-08  Alan Modra  <amodra@bigpond.net.au>
 
        * elf64-ppc.c (edit_opd): Correct test for discarded sections.
index 915156143d9d2b2e9f47545050a4854f3aa24070..e431c14867cc9ef0587d2e465d28c5ba1d59317d 100644 (file)
@@ -3765,7 +3765,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.  */