brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · e8b8805 Raw
69 lines · plain
1# REQUIRES: systemz2# RUN: llvm-mc -filetype=obj -triple=s390x-unknown-linux %s -o %t.o3# RUN: llvm-mc -filetype=obj -triple=s390x-unknown-linux %S/Inputs/gotpc-relax-und-dso.s -o %tdso.o4# RUN: ld.lld -shared %tdso.o -soname=t.so -o %t.so5# RUN: ld.lld --hash-style=sysv -shared %t.o %t.so -o %t6# RUN: llvm-readelf -r %t | FileCheck --check-prefix=RELOC %s7# RUN: llvm-objdump --no-print-imm-hex -d %t | FileCheck --check-prefix=DISASM %s8 9# RELOC-LABEL: Relocation section '.rela.dyn' at offset {{.*}} contains 3 entries:10# RELOC: 00000000000023f8 000000010000000a R_390_GLOB_DAT 00000000000012d8 foo + 011# RELOC: 0000000000002400 000000030000000a R_390_GLOB_DAT 0000000000000000 und + 012# RELOC: 0000000000002408 000000040000000a R_390_GLOB_DAT 0000000000000000 dsofoo + 013 14# DISASM:      Disassembly of section .text:15# DISASM-EMPTY:16# DISASM-NEXT: <foo>:17# DISASM-NEXT:     nop18# DISASM:      <hid>:19# DISASM-NEXT:     nop20# DISASM:      <_start>:21# DISASM-NEXT:    lgrl    %r1, 0x240022# DISASM-NEXT:    lgrl    %r1, 0x240023# DISASM-NEXT:    lgrl    %r1, 0x240824# DISASM-NEXT:    lgrl    %r1, 0x240825# DISASM-NEXT:    larl    %r1, 0x12dc26# DISASM-NEXT:    larl    %r1, 0x12dc27# DISASM-NEXT:    lgrl    %r1, 0x23f828# DISASM-NEXT:    lgrl    %r1, 0x23f829# DISASM-NEXT:    lgrl    %r1, 0x240030# DISASM-NEXT:    lgrl    %r1, 0x240031# DISASM-NEXT:    lgrl    %r1, 0x240832# DISASM-NEXT:    lgrl    %r1, 0x240833# DISASM-NEXT:    larl    %r1, 0x12dc34# DISASM-NEXT:    larl    %r1, 0x12dc35# DISASM-NEXT:    lgrl    %r1, 0x23f836# DISASM-NEXT:    lgrl    %r1, 0x23f837 38.text39.globl foo40.type foo, @function41foo:42 nop43 44.globl hid45.hidden hid46.type hid, @function47hid:48 nop49 50.globl _start51.type _start, @function52_start:53 lgrl %r1, und@GOT54 lgrl %r1, und@GOT55 lgrl %r1, dsofoo@GOT56 lgrl %r1, dsofoo@GOT57 lgrl %r1, hid@GOT58 lgrl %r1, hid@GOT59 lgrl %r1, foo@GOT60 lgrl %r1, foo@GOT61 lgrl %r1, und@GOT62 lgrl %r1, und@GOT63 lgrl %r1, dsofoo@GOT64 lgrl %r1, dsofoo@GOT65 lgrl %r1, hid@GOT66 lgrl %r1, hid@GOT67 lgrl %r1, foo@GOT68 lgrl %r1, foo@GOT69