[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
Fri Feb 16 12:19:21 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:
I think using "everybody" is not accurate. I've mentioned that `-fpie -no-pie` does not need this. And this `-fno-pie -no-pie` use has been a tiny portion of the user community. We are, after all, dealing with a problem that very few users run into in the first place. I think it matters to optimize for the prevailing configurations (-fpie/-fpic with -pie).
We also need evidence that "I have heard that x86-64 -fno-pic is measurably slower than -fpie in large workloads"
https://github.com/llvm/llvm-project/pull/81224
More information about the llvm-branch-commits
mailing list