mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
f194367792
Many of these predate llvm-readobj. With elf-dump we had to match a relocation to symbol number and symbol number to symbol name or section number. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235015 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
453 B
ArmAsm
14 lines
453 B
ArmAsm
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -r -t | FileCheck %s
|
|
|
|
// 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:
|
|
|
|
// CHECK: Relocations [
|
|
// CHECK: Section {{.*}} .rela.text {
|
|
// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_32S .text 0x{{[^ ]+}}
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: ]
|