* elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): Expand comment.

This commit is contained in:
Alan Modra 2003-04-03 04:02:02 +00:00
parent 2b98e6c032
commit c8b21ee577
2 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,7 @@
* elf32-ppc.c (ppc_elf_check_relocs): Don't use SYMBOL_REFERENCES_LOCAL * elf32-ppc.c (ppc_elf_check_relocs): Don't use SYMBOL_REFERENCES_LOCAL
here as it's too early to reliably determine locality. here as it's too early to reliably determine locality.
(ppc_elf_gc_sweep_hook): Likewise. (ppc_elf_gc_sweep_hook): Likewise.
(SYMBOL_REFERENCES_LOCAL): Expand comment.
2003-04-02 Bob Wilson <bob.wilson@acm.org> 2003-04-02 Bob Wilson <bob.wilson@acm.org>

View File

@ -147,8 +147,12 @@ static bfd_boolean ppc_elf_grok_psinfo
#define DTP_OFFSET 0x8000 #define DTP_OFFSET 0x8000
/* Will references to this symbol always reference the symbol /* Will references to this symbol always reference the symbol
in this object? */ in this object? STV_PROTECTED is excluded from the visibility test
#define SYMBOL_REFERENCES_LOCAL(INFO, H) \ here so that function pointer comparisons work properly. Since
function symbols not defined in an app are set to their .plt 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->shared \
|| INFO->symbolic \ || INFO->symbolic \
|| H->dynindx == -1 \ || H->dynindx == -1 \