2017-02-16 22:36:09 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
|
|
# RUN: echo "SECTIONS { .rela.dyn : { *(.rela.data) } }" > %t.script
|
2017-10-06 17:37:44 +08:00
|
|
|
# RUN: ld.lld --hash-style=sysv -T %t.script --emit-relocs %t.o -o %t.so -shared
|
2017-02-16 22:36:09 +08:00
|
|
|
# RUN: llvm-readobj -r %t.so | FileCheck %s
|
|
|
|
|
|
|
|
.data
|
|
|
|
.quad .foo
|
|
|
|
|
|
|
|
# CHECK: Relocations [
|
|
|
|
# CHECK-NEXT: Section ({{.*}}) .rela.dyn {
|
2018-05-16 01:02:35 +08:00
|
|
|
# CHECK-NEXT: 0x68 R_X86_64_64 .foo 0x0
|
2017-02-16 22:36:09 +08:00
|
|
|
# CHECK-NEXT: }
|
|
|
|
# CHECK-NEXT: Section ({{.*}}) .rela.data {
|
2018-05-16 01:02:35 +08:00
|
|
|
# CHECK-NEXT: 0x68 R_X86_64_64 .foo 0x0
|
2017-02-16 22:36:09 +08:00
|
|
|
# CHECK-NEXT: }
|
|
|
|
# CHECK-NEXT: ]
|