[PATCH] D54249: [WebAssembly] Initial support for shared objects (-shared)

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 12 22:30:21 PST 2018


ruiu added inline comments.


================
Comment at: wasm/Driver.cpp:395
                    !Config->Relocatable);
+  Config->Pie = Args.hasFlag(OPT_pie, OPT_no_pie, false);
   Config->PrintGcSections =
----------------
This may be a silly question, but in wasm, what is the notion of position-independent executable? Are executable expected to be loaded at a fixed address by default, and you can opt out with `-pie`? The notion of PIE is dependent on the memory layout of the physical machine, and that's quite different from wasm's memory model.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D54249





More information about the llvm-commits mailing list