]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/ChangeLog
PPC: ensure_undef_dynamic on weak undef only in plt
authorAlan Modra <amodra@gmail.com>
Mon, 3 May 2021 00:33:06 +0000 (10:03 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 3 May 2021 06:04:17 +0000 (15:34 +0930)
commitb293661219c36e72acb80502a86b51160bb88cfd
treedeebfdb320ad07d4ca226983cb4346ae81efebaf
parent337d0bf887a3ed6b6b2123fecfec0736640edcaf
PPC: ensure_undef_dynamic on weak undef only in plt

It's slightly weird to have a call to a weak function not protected by
a test of that function being non-NULL, but the non-NULL test might be
covered by a test of another function.  For example:
  if (func1)
    {
      func1 ();
      func2 ();
    }
where func2 is known to exist if func1 exists.

* elf32-ppc.c (allocate_dynrelocs): Call ensure_undef_dynamic for
weak undefined symols that only appear on PLT relocs.
* elf64-ppc.c (allocate_dynrelocs): Likewise.
bfd/ChangeLog
bfd/elf32-ppc.c
bfd/elf64-ppc.c