aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-05-26 04:28:20 +0000
committerAlan Modra <amodra@gmail.com>2011-05-26 04:28:20 +0000
commit2676a7d99177c857a9cf46543f961816e2650365 (patch)
treecedaddf73fffa34649c3629ec489ab5ffaf9b9b7 /bfd/elflink.c
parentea1f7d4c8e76be752583e1829e94dc487d5f77f7 (diff)
downloadbinutils-2676a7d99177c857a9cf46543f961816e2650365.zip
binutils-2676a7d99177c857a9cf46543f961816e2650365.tar.gz
binutils-2676a7d99177c857a9cf46543f961816e2650365.tar.bz2
* 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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 4675aab..e8a6840 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;
}