[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:47:55 PST 2024


================
@@ -4,6 +4,10 @@
 # RUN: ld.lld randomdata.o -o randomdata
 # RUN: llvm-readelf -S -l randomdata | FileCheck %s --check-prefix=RANDOMDATA
 
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-openbsd /dev/null -o nobtcfi.o
+# RUN: ld.lld -z nobtcfi nobtcfi.o -o nobtcfi
+# RUN: llvm-readelf -l nobtcfi | FileCheck %s --check-prefix=NOBTCFI
+
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-openbsd /dev/null -o wxneeded.o
----------------
MaskRay wrote:

Delete the second `# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-openbsd /dev/null -o empty.o`

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


More information about the llvm-commits mailing list