| Nico Rieck | ba848e3 | 2013-04-12 04:06:46 +0000 | [diff] [blame] | 1 | // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -r -t | FileCheck %s |
| Rafael Espindola | cf1f985 | 2010-09-24 21:19:03 +0000 | [diff] [blame] | 2 | |
| 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 |
| 7 | foo: |
| 8 | |
| Nico Rieck | 7647178 | 2014-02-16 07:31:05 +0000 | [diff] [blame^] | 9 | // CHECK: Relocations [ |
| Rafael Espindola | 4f60a38 | 2013-05-30 03:05:14 +0000 | [diff] [blame] | 10 | // CHECK: Section (2) .rela.text { |
| Nico Rieck | ba848e3 | 2013-04-12 04:06:46 +0000 | [diff] [blame] | 11 | // CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_32S .text 0x{{[^ ]+}} |
| 12 | // CHECK-NEXT: } |
| 13 | // CHECK-NEXT: ] |