[lld] [ELF] Add support for PT_OPENBSD_NOBTCFI (PR #120005)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 18 20:17:31 PST 2024
================
@@ -2405,6 +2405,13 @@ Writer<ELFT>::createPhdrs(Partition &part) {
addHdr(PT_GNU_STACK, perm)->p_memsz = ctx.arg.zStackSize;
}
+ if (ctx.arg.osabi == ELFOSABI_OPENBSD) {
----------------
MaskRay wrote:
The osabi check can be deleted as zNoBtCfi cannot be true for other osabi values
https://github.com/llvm/llvm-project/pull/120005
More information about the llvm-commits
mailing list