[PATCH] D118414: [lld][WebAssembly] Handle TLS symbols in older object file
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 27 16:36:29 PST 2022
sbc100 added inline comments.
================
Comment at: llvm/lib/ObjectYAML/WasmEmitter.cpp:588
encodeULEB128(Reloc.Index, OS);
- switch (Reloc.Type) {
- case wasm::R_WASM_MEMORY_ADDR_LEB:
- case wasm::R_WASM_MEMORY_ADDR_LEB64:
- case wasm::R_WASM_MEMORY_ADDR_SLEB:
- case wasm::R_WASM_MEMORY_ADDR_SLEB64:
- case wasm::R_WASM_MEMORY_ADDR_I32:
- case wasm::R_WASM_MEMORY_ADDR_I64:
- case wasm::R_WASM_FUNCTION_OFFSET_I32:
- case wasm::R_WASM_FUNCTION_OFFSET_I64:
- case wasm::R_WASM_SECTION_OFFSET_I32:
+ if (wasm::relocTypeHasAddend(Reloc.Type))
encodeSLEB128(Reloc.Addend, OS);
----------------
tlively wrote:
> This looks unrelated. Would it make sense to split out?
Its needed in order to make yaml2obj work for my new test case... so in a sense in related... in some way my new test acts a test for this..
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118414/new/
https://reviews.llvm.org/D118414
More information about the llvm-commits
mailing list