[PATCH] D96659: [WebAssembly] Add new relocation for pc-rel data

Yuta Saito via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 14 12:54:20 PST 2021


kateinoigakukun added inline comments.


================
Comment at: llvm/test/MC/WebAssembly/selfrel.ll:48
+    i32 ptrtoint (i32* @x_sec to i32)
+), section ".sec1"
+
----------------
kateinoigakukun wrote:
> sbc100 wrote:
> > What happens today with this code?  (without this change would this fail in some way?).
> > What happens today with this code?  (without this change would this fail in some way?).
> 
> 
Yes, this kind of subtractions between cross-sections are failing now because the diff can not be fixed at compile-time layout.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96659/new/

https://reviews.llvm.org/D96659



More information about the llvm-commits mailing list