2013-04-12 04:06:46 +00:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r -t | FileCheck %s
|
2010-10-03 00:46:57 +00:00
|
|
|
|
2013-04-12 04:06:46 +00:00
|
|
|
// CHECK: Relocations [
|
|
|
|
// CHECK-NEXT: Section ({{[^ ]+}}) {{[^ ]+}} {
|
|
|
|
// CHECK-NEXT: 0xC R_X86_64_PC32 baz 0x8
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
2011-03-20 18:44:20 +00:00
|
|
|
|
2013-04-12 04:06:46 +00:00
|
|
|
// CHECK: Symbol {
|
|
|
|
// CHECK: Name: baz (5)
|
|
|
|
// CHECK-NEXT: Value: 0x0
|
|
|
|
// CHECK-NEXT: Size: 0
|
|
|
|
// CHECK-NEXT: Binding: Global
|
|
|
|
// CHECK-NEXT: Type: None
|
|
|
|
// CHECK-NEXT: Other: 0
|
|
|
|
// CHECK-NEXT: Section: (0x0)
|
|
|
|
// CHECK-NEXT: }
|
2010-10-03 00:46:57 +00:00
|
|
|
|
2010-10-04 15:59:01 +00:00
|
|
|
.zero 4
|
|
|
|
.data
|
|
|
|
|
2010-10-04 15:28:43 +00:00
|
|
|
.zero 1
|
|
|
|
.align 4
|
2010-10-03 00:46:57 +00:00
|
|
|
foo:
|
|
|
|
.zero 8
|
|
|
|
.long baz - foo
|