[lld] [lld] Add target support for SystemZ (s390x) (PR #75643)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 10 15:03:32 PST 2024
================
@@ -0,0 +1,72 @@
+// REQUIRES: systemz
+// RUN: llvm-mc -filetype=obj -triple=s390x-none-linux-gnu %s -o %t.o
+// RUN: ld.lld -static %t.o -o %tout
+// RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn %tout | FileCheck %s --check-prefix=DISASM
+// RUN: llvm-readelf --section-headers --relocations --symbols %tout | FileCheck %s
+
+// CHECK: There are 9 section headers
+// CHECK: Section Headers:
+// CHECK-NEXT: [Nr] Name Type Address Off Size ES Flg Lk Inf Al
+// CHECK-NEXT: [ 0] NULL 0000000000000000 000000 000000 00 0 0 0
+// CHECK-NEXT: [ 1] .rela.dyn RELA 0000000001000158 000158 000030 18 AI 0 4 8
+// CHECK-NEXT: [ 2] .text PROGBITS 0000000001001188 000188 00001c 00 AX 0 0 4
+// CHECK-NEXT: [ 3] .iplt PROGBITS 00000000010011b0 0001b0 000040 00 AX 0 0 16
+// CHECK-NEXT: [ 4] .got.plt PROGBITS 00000000010021f0 0001f0 000010 00 WA 0 0 8
+// CHECK-NEXT: [ 5] .comment PROGBITS 0000000000000000 000200 000008 01 MS 0 0 1
----------------
MaskRay wrote:
sections starting from `.comment` can be removed to simplify possible layout change in the future.
https://github.com/llvm/llvm-project/pull/75643
More information about the llvm-commits
mailing list