From: Jakub Jelinek Date: Fri, 4 Jul 2003 13:57:14 +0000 (+0000) Subject: * elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Return X-Git-Tag: ezannoni_pie-20030916-branchpoint~886 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3368a7fb7aed1785abd007308ed0b4feed7c5723;p=thirdparty%2Fbinutils-gdb.git * elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Return true even if -pie. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 49c49c2be63..b9f5970ba55 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-07-04 Jakub Jelinek + + * elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Return + true even if -pie. + 2003-07-04 Jakub Jelinek * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add rel_fptr_sec. diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 1b9ec8ae256..410e91f2cb4 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -217,7 +217,7 @@ struct elf_link_hash_entry it's necessary for shared libs to also reference the .plt even though the symbol is really local to the shared lib. */ #define SYMBOL_REFERENCES_LOCAL(INFO, H) \ - ((! (INFO)->shared \ + (((INFO)->executable \ || (INFO)->symbolic \ || (H)->dynindx == -1 \ || ELF_ST_VISIBILITY ((H)->other) == STV_INTERNAL \ @@ -227,7 +227,7 @@ struct elf_link_hash_entry /* Will _calls_ to this symbol always call the version in this object? */ #define SYMBOL_CALLS_LOCAL(INFO, H) \ - ((! (INFO)->shared \ + (((INFO)->executable \ || (INFO)->symbolic \ || (H)->dynindx == -1 \ || ELF_ST_VISIBILITY ((H)->other) != STV_DEFAULT \