[PATCH] D41113: [LLVMgold] Don't set resolutions for undefined symbols to 'Prevailing'
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 12 07:50:22 PST 2017
tejohnson added inline comments.
================
Comment at: tools/gold/gold-plugin.cpp:659
case LDPR_PREVAILING_DEF_IRONLY:
- R.Prevailing = true;
+ R.Prevailing = (Sym.def != LDPK_UNDEF);
break;
----------------
This seems like a bug in gold? The description of LDPR_PREVAILING_DEF_IRONLY from plugin-api.h says it should be used for definitions:
/* This is the prevailing definition of the symbol, with no
references from regular objects. It is only referenced from IR
code. */
LDPR_PREVAILING_DEF_IRONLY,
Wondering why it isn't LDPR_UNDEF. What does the test case look like?
https://reviews.llvm.org/D41113
More information about the llvm-commits
mailing list