[PATCH] D92038: [lld][WebAssebmly] Ensure stub symbols always get address 0
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 24 08:21:20 PST 2020
sbc100 created this revision.
Herald added subscribers: llvm-commits, wingo.
Herald added a project: LLVM.
sbc100 requested review of this revision.
Herald added a subscriber: aheejin.
Without this extra flag we can't distingish between stub functions and
functions that happen to have address 0 (relative to __table_base).
Adding this flag bit the base symbol class actually avoids growing the
SymbolUnion struct which would not be true if we added it to the
FunctionSymbol subclass (due to bitbacking).
The previous approach of setting it's table index to zero worked for
normal static relocations but not for `-fPIC` code.
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5605 bytes
Desc: not available
More information about the llvm-commits