2019-05-01 13:27:20 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S -r -t | FileCheck %s
|
2010-09-25 05:19:03 +08:00
|
|
|
|
|
|
|
// Test that relocations with local symbols are represented as relocations
|
|
|
|
// with the section. They should be equivalent, but gas behaves like this.
|
|
|
|
|
|
|
|
movl foo, %r14d
|
|
|
|
foo:
|
|
|
|
|
2014-02-16 15:31:05 +08:00
|
|
|
// CHECK: Relocations [
|
2015-04-15 23:59:37 +08:00
|
|
|
// CHECK: Section {{.*}} .rela.text {
|
2013-04-12 12:06:46 +08:00
|
|
|
// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_32S .text 0x{{[^ ]+}}
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|