This is an archive of the discontinued LLVM Phabricator instance.

[WIP] Add WASM_TABLE_INDEX_{SLEB,I32} reloc types with addends
AbandonedPublic

Authored by dschuff on Sep 12 2019, 2:55 PM.

Details

Reviewers
sbc100

Event Timeline

dschuff created this revision.Sep 12 2019, 2:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 12 2019, 2:55 PM
dschuff added inline comments.Sep 12 2019, 2:57 PM
llvm/lib/Object/WasmObjectFile.cpp
764

@sbc100 When I run the test (see symbol-offsets.s) I'm running into this error when I hit the R_WASM_TABLE_INDEX_I32_ADDEND reloc. Any idea why this might be happening?

sbc100 added inline comments.Sep 26 2019, 10:08 AM
llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
153

Can you link the bug where we discuessed this. I'm having trouble remember why should even allow this give that it doesn't make any sense to do arithmetic on table indexes.

dschuff marked an inline comment as done.Sep 26 2019, 10:46 AM
dschuff added inline comments.
llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
153
sbc100 added inline comments.Aug 11 2021, 5:22 PM
llvm/include/llvm/BinaryFormat/WasmRelocs.def
19

Missing newline at EOF?

llvm/lib/Object/WasmObjectFile.cpp
774

Indentation looks off

sbc100 added inline comments.Aug 11 2021, 5:27 PM
llvm/test/MC/WebAssembly/symbol-offsets.s
47

Missing newline at EOF?

dschuff abandoned this revision.Aug 13 2021, 1:44 PM

Abandoning in favor of D107940