[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
Tue Feb 20 13:53:22 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:

Thanks for understanding. I think I am fairly strong in keeping the stance that layout decisions should not magically change due to -no-pie/-pie. If we ever decide to deviate from the policy, we can re-consider. But having `-z lrodata-after-bss` should make these possible.

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


More information about the llvm-branch-commits mailing list