[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 11:43:16 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:

OK...then it ought to default to true, instead of false.

(And I do also wish you would explain better why you feel so strongly about not changing behavior based on pic vs not.)

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


More information about the llvm-branch-commits mailing list