Closed pmatos closed 4 years ago
Looking to get comments on the updates. I included some relocation 20 which has not been implemented in clang/LLVM yet but are working on it. So I included a note below the relocation list explaining which clang/LLVM versions contain which relocations.
LGTM, for what it's worth. Style nit, I would put suffixes like "(Since LLVM 10.x)" on the relocs added since LLVM 10.x (and 11.x, and presumably 12.x); otherwise with the summary below, it's easy to miss.
Including the 64-bit relocations in this document seems ok to me. +1 to adding warnings/footnotes that the 64-bit relocations aren't yet stable.
I assume you would still prefer not to include the REL relocations used for PIC code?
Thanks for the reviews - I will prepare the necessary changes, commit then and re-request reviews.
I assume you would still prefer not to include the REL relocations used for PIC code?
Yep. As @aardappel says, wasm64 seems unlikely to see big changes, and it's similar enough to wasm32 that keeping them together will make it easier to keep them in sync. But I'm expecting PIC and dynamic linking will see big changes in the future.
Most of the changes have been completed, re-requesting reviews.
Regarding the renaming suggested by @sunfishcode , I can do them under this PR if needed but it will require changes to LLVM and wabt and therefore invalidate the versions from which the relocs were available, although I can mention old names as well.
How do you prefer to do this?
I think we can land this as is and do the rename a followup since it will effect all relocation names.
I think we can land this as is and do the rename a followup since it will effect all relocation names.
Sure!
I have squashed the changes. If all is OK, feel free to merge.
Include information about clang/LLVM versions where each relocation is implemented.