You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
458 B
17 lines
458 B
7 months ago
|
# REQUIRES: x86
|
||
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
|
||
|
# RUN: ld.lld -r %t1.o -o %t2.o
|
||
|
# RUN: llvm-readobj -r %t2.o | FileCheck %s
|
||
|
|
||
|
# CHECK: Relocations [
|
||
|
# CHECK-NEXT: Section ({{.*}}) .rela.text {
|
||
|
# CHECK-NEXT: 0x3 R_X86_64_PC32 .Lstr 0xFFFFFFFFFFFFFFFC
|
||
|
# CHECK-NEXT: }
|
||
|
# CHECK-NEXT: ]
|
||
|
|
||
|
leaq .Lstr(%rip), %rdi
|
||
|
|
||
|
.section .rodata.str1.1,"aMS",@progbits,1
|
||
|
.Lstr:
|
||
|
.asciz "abc\n"
|