]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/writable-sec-plt-reloc.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / writable-sec-plt-reloc.s
1 # REQUIRES: x86
2 # RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
3 # RUN: llvm-mc %p/Inputs/writable-sec-plt-reloc.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux
4 # RUN: ld.lld %t2.o -o %t2.so -shared
5 # RUN: ld.lld %t.o %t2.so -o %t
6 # RUN: llvm-readelf --symbols -r %t | FileCheck %s
7
8 # CHECK: R_X86_64_JUMP_SLOT {{.*}} foo + 0
9 # CHECK: 0000000000201010     0 FUNC    GLOBAL DEFAULT  UND foo
10
11 .section .bar,"awx"
12 .global _start
13 _start:
14         .long foo - .