From 62cd30f167be56e68cb0a37789d400b47bbdbc6c Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 14 Oct 2017 10:19:30 -0700 Subject: Move UNDEFWEAK_NO_DYNAMIC_RELOC to elf-bfd.h Move UNDEFWEAK_NO_DYNAMIC_RELOC to elf-bfd.h so that it can be used by other ELF linker backends. * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Moved to ... * elf-bfd.h (UNDEFWEAK_NO_DYNAMIC_RELOC): Here. * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Removed. --- bfd/elf64-ppc.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'bfd/elf64-ppc.c') diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 2d25399..3f6bff9 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -3835,13 +3835,6 @@ must_be_dyn_reloc (struct bfd_link_info *info, } } -/* Whether an undefined weak symbol should resolve to its link-time - value, even in PIC or PIE objects. */ -#define UNDEFWEAK_NO_DYNAMIC_RELOC(INFO, H) \ - ((H)->root.type == bfd_link_hash_undefweak \ - && (ELF_ST_VISIBILITY ((H)->other) != STV_DEFAULT \ - || (INFO)->dynamic_undefined_weak == 0)) - /* If ELIMINATE_COPY_RELOCS is non-zero, the linker will try to avoid copying dynamic variables from a shared lib into an app's dynbss section, and instead use a dynamic relocation to point into the -- cgit v1.1