[lld] [ELF] Add support for PT_OPENBSD_NOBTCFI (PR #120005)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 15 13:34:55 PST 2024
================
@@ -1487,6 +1487,7 @@ static void readConfigs(Ctx &ctx, opt::InputArgList &args) {
args, "keep-text-section-prefix", "nokeep-text-section-prefix", false);
ctx.arg.zLrodataAfterBss =
getZFlag(args, "lrodata-after-bss", "nolrodata-after-bss", false);
+ ctx.arg.zNoBtCfi = hasZOption(args, "nobtcfi");
----------------
MaskRay wrote:
Initialize the variable to false. Move this to setConfigs and only do it when osabi is openbsd.
https://github.com/llvm/llvm-project/pull/120005
More information about the llvm-commits
mailing list