2013-04-12 12:06:46 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s
|
2011-03-03 15:24:36 +08:00
|
|
|
|
|
|
|
// Test that weak symbols always produce relocations
|
|
|
|
|
|
|
|
.weak foo
|
|
|
|
foo:
|
|
|
|
bar:
|
|
|
|
call foo
|
|
|
|
|
2013-04-12 12:06:46 +08:00
|
|
|
// CHECK: Relocations [
|
2013-05-30 11:05:14 +08:00
|
|
|
// CHECK-NEXT: Section ({{[0-9]+}}) .rela.text {
|
2013-04-12 12:06:46 +08:00
|
|
|
// CHECK-NEXT: 0x1 R_X86_64_PC32 foo 0xFFFFFFFFFFFFFFFC
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|