summaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2003-07-04 13:57:14 +0000
committerJakub Jelinek <jakub@redhat.com>2003-07-04 13:57:14 +0000
commit1bd1acd8c150133c0daddf921854da809c23e65f (patch)
tree6dce639e0c9035b5a8a73a542d068fd58a451b0f /bfd/elf-bfd.h
parentb673ba41ccd86116cb1800e75260de6bf773d977 (diff)
downloadgdb-1bd1acd8c150133c0daddf921854da809c23e65f.tar.gz
* elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Return
true even if -pie.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h4
1 files changed, 2 insertions, 2 deletions
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 \