[lld] [llvm] [Object][Wasm] Use file offset for section addresses in linked wasm files (PR #80529)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 6 18:27:18 PST 2024
================
@@ -1366,8 +1375,9 @@ static SymbolInfoTy createDummySymbolInfo(const ObjectFile &Obj,
uint8_t Type) {
if (Obj.isXCOFF() && (SymbolDescription || TracebackTable))
return SymbolInfoTy(std::nullopt, Addr, Name, std::nullopt, false);
- else
- return SymbolInfoTy(Addr, Name, Type);
+ if (Obj.isWasm())
+ return SymbolInfoTy(Addr, Name, wasm::WASM_SYMBOL_TYPE_SECTION);
----------------
sbc100 wrote:
Why create a section symbol here where creating a dummy symbol?
https://github.com/llvm/llvm-project/pull/80529
More information about the llvm-commits
mailing list