needsPltAddr is equivalent to needsCopy && isFunc. In many places, it is
equivalent to needsCopy because the non-STT_FUNC cases are ruled out.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, although worth waiting a bit to see what others think.
I'm still wondering if we can find a better name than needsCopy; I still haven't come up with a better one. It would need a word that captures the abstraction of a "copy relocation" and "canonical PLT entry" without being so close to one of them that it implies just that one thing yet self descriptive on what the need is for. The best I can come up with is needsCanonicalDefinition but not sure that is better than needsCopy.
Comment Actions
needsCopy is declared as a temporary flag and, according to its comment, should not be used after postScanRelocations(). Because the usage is extended, that should be reflected in the comment.