]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/relocatable-local-sym.s
Vendor import of lld trunk r290819:
[FreeBSD/FreeBSD.git] / test / ELF / relocatable-local-sym.s
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
3 # RUN: ld.lld -r %t1.o -o %t2.o
4 # RUN: llvm-readobj -r %t2.o | FileCheck %s
5
6 # CHECK:      Relocations [
7 # CHECK-NEXT:   Section ({{.*}}) .rela.text {
8 # CHECK-NEXT:     0x3 R_X86_64_PC32 .Lstr 0xFFFFFFFFFFFFFFFC
9 # CHECK-NEXT:   }
10 # CHECK-NEXT: ]
11
12         leaq    .Lstr(%rip), %rdi
13
14         .section        .rodata.str1.1,"aMS",@progbits,1
15         .Lstr:
16         .asciz "abc\n"