diff options
author | Alan Modra <amodra@bigpond.net.au> | 2011-05-26 04:28:12 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2011-05-26 04:28:12 +0000 |
commit | 97f3ab56094d61983651d8ede4ffce322e5769e0 (patch) | |
tree | 99481ed52672b7717179a4d3f5cd13e846f2a49a /bfd/elflink.c | |
parent | 2eb8c4131924111076d655349cfdd9b4ed88e6aa (diff) | |
download | binutils-redhat-97f3ab56094d61983651d8ede4ffce322e5769e0.tar.gz |
* elf-bfd.h (SYMBOL_REFERENCES_LOCAL): Remove most of comment.
* elflink.c (_bfd_elf_symbol_refs_local_p): Expand
local_protected comment.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 4675aab82a..e8a6840c15 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -2881,8 +2881,10 @@ _bfd_elf_symbol_refs_local_p (struct elf_link_hash_entry *h, return TRUE; /* Function pointer equality tests may require that STV_PROTECTED - symbols be treated as dynamic symbols, even when we know that the - dynamic linker will resolve them locally. */ + symbols be treated as dynamic symbols. If the address of a + function not defined in an executable is set to that function's + plt entry in the executable, then the address of the function in + a shared library must also be the plt entry in the executable. */ return local_protected; } |