forked from OSchip/llvm-project
22 lines
591 B
ArmAsm
22 lines
591 B
ArmAsm
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t2.o
|
|
// RUN: ld.lld2 -shared %t2.o -o %t2.so
|
|
// RUN: ld.lld2 %t.o %t2.so -o %t
|
|
// RUN: llvm-readobj -r %t | FileCheck %s
|
|
|
|
// We used to record the wrong symbol index for this test
|
|
|
|
// CHECK: Relocations [
|
|
// CHECK-NEXT: Section ({{.*}}) .rela.dyn {
|
|
// CHECK-NEXT: 0x11000 R_X86_64_64 bar 0x0
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: ]
|
|
|
|
.global foobar
|
|
foobar:
|
|
.global zedx
|
|
zedx:
|
|
.global _start
|
|
_start:
|
|
.quad bar
|