2020-07-20 15:39:14 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols - | FileCheck %s
|
2010-10-03 08:46:57 +08:00
|
|
|
|
2013-04-12 12:06:46 +08:00
|
|
|
// CHECK: Relocations [
|
|
|
|
// CHECK-NEXT: Section ({{[^ ]+}}) {{[^ ]+}} {
|
|
|
|
// CHECK-NEXT: 0xC R_X86_64_PC32 baz 0x8
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
2011-03-21 02:44:20 +08:00
|
|
|
|
2013-04-12 12:06:46 +08:00
|
|
|
// CHECK: Symbol {
|
2014-05-01 00:25:02 +08:00
|
|
|
// CHECK: Name: baz
|
2013-04-12 12:06:46 +08:00
|
|
|
// CHECK-NEXT: Value: 0x0
|
|
|
|
// CHECK-NEXT: Size: 0
|
|
|
|
// CHECK-NEXT: Binding: Global
|
|
|
|
// CHECK-NEXT: Type: None
|
|
|
|
// CHECK-NEXT: Other: 0
|
2014-03-24 13:00:34 +08:00
|
|
|
// CHECK-NEXT: Section: Undefined (0x0)
|
2013-04-12 12:06:46 +08:00
|
|
|
// CHECK-NEXT: }
|
2010-10-03 08:46:57 +08:00
|
|
|
|
2010-10-04 23:59:01 +08:00
|
|
|
.zero 4
|
|
|
|
.data
|
|
|
|
|
2010-10-04 23:28:43 +08:00
|
|
|
.zero 1
|
|
|
|
.align 4
|
2010-10-03 08:46:57 +08:00
|
|
|
foo:
|
|
|
|
.zero 8
|
|
|
|
.long baz - foo
|