You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
453 B
14 lines
453 B
4 months ago
|
// 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: ]
|