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

James Y Knight via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Feb 15 07:56:38 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);
----------------
jyknight wrote:

Use `!config->isPic` as default value, instead of false? (moving below the assignment of `isPic`, of course)

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


More information about the llvm-branch-commits mailing list