[lld] [lld] Add target support for SystemZ (s390x) (PR #75643)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 19 17:40:25 PST 2023


================
@@ -0,0 +1,59 @@
+# REQUIRES: systemz
+# RUN: llvm-mc -filetype=obj -triple=s390x-unknown-linux %s -o %t1.o
+
+## Default is no PIE.
+# RUN: ld.lld %t1.o -o %t
+# RUN: llvm-readobj --file-headers --sections -l --symbols -r %t \
+# RUN:   | FileCheck %s --check-prefix=NOPIE
+
+## Check -pie.
+# RUN: ld.lld -pie %t1.o -o %t
+# RUN: llvm-readobj --file-headers --sections -l -d --symbols -r %t | FileCheck %s
+
+## Test --pic-executable alias
----------------
MaskRay wrote:

Delete `--pic-executable` test. Having this in `pie.s` is sufficient.

ppc32 is a good example for test organization.

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


More information about the llvm-commits mailing list