blob: ce0b674364c2c6c0d2b2e4ee92d1d4ba58b26f78 [file] [log] [blame]
Nico Rieckba848e32013-04-12 04:06:46 +00001// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -r -t | FileCheck %s
Rafael Espindolacf1f9852010-09-24 21:19:03 +00002
3// Test that relocations with local symbols are represented as relocations
4// with the section. They should be equivalent, but gas behaves like this.
5
6 movl foo, %r14d
7foo:
8
Nico Rieck76471782014-02-16 07:31:05 +00009// CHECK: Relocations [
Rafael Espindola10f3de62015-04-15 15:59:37 +000010// CHECK: Section {{.*}} .rela.text {
Nico Rieckba848e32013-04-12 04:06:46 +000011// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_32S .text 0x{{[^ ]+}}
12// CHECK-NEXT: }
13// CHECK-NEXT: ]