[llvm-branch-commits] [ELF] Support placing .lbss/.lrodata/.ldata after .bss (PR #81224)

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Feb 15 10:17:40 PST 2024


================
@@ -1436,6 +1436,8 @@ static void readConfigs(opt::InputArgList &args) {
   config->zInterpose = hasZOption(args, "interpose");
   config->zKeepTextSectionPrefix = getZFlag(
       args, "keep-text-section-prefix", "nokeep-text-section-prefix", false);
+  config->zLrodataAfterBss =
+      getZFlag(args, "lrodata-after-bss", "nolrodata-after-bss", false);
----------------
MaskRay wrote:

Sorry, but no. I don't think the x86-64 -fno-pic case justifies changing the tradition that -no-pie/-pie does not change the layout (internal linker script). `-z lrodata-after-bss` is a common ground that we both can accept and it has its own merit to test two layouts for file-backed transparent huge pages.

https://github.com/llvm/llvm-project/pull/81224


More information about the llvm-branch-commits mailing list