This R_WASM_MEMORY_ADDR_SELFREL_I32 relocation represents an offset
between its relocating address and the symbol address. It's very similar
to R_X86_64_PC32 but restricted to be used for only data segments.
S + A - P
A: Represents the addend used to compute the value of the relocatable
field.
P: Represents the place of the storage unit being relocated.
S: Represents the value of the symbol whose index resides in the
relocation entry.
Proposal: https://github.com/WebAssembly/tool-conventions/issues/162
Can we write this test in assembly? I've been trying to convert all the lld test to asm so would rather not add more .ll tests here. Also I think it might be a lore more concise/readable perhaps in .s form?