2013-04-12 06:06:46 +02:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r -t | FileCheck %s
|
2010-10-03 02:46:57 +02:00
|
|
|
|
2013-04-12 06:06:46 +02:00
|
|
|
// CHECK: Relocations [
|
|
|
|
// CHECK-NEXT: Section ({{[^ ]+}}) {{[^ ]+}} {
|
|
|
|
// CHECK-NEXT: 0xC R_X86_64_PC32 baz 0x8
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
2011-03-20 19:44:20 +01:00
|
|
|
|
2013-04-12 06:06:46 +02: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 02:46:57 +02:00
|
|
|
|
2010-10-04 17:59:01 +02:00
|
|
|
.zero 4
|
|
|
|
.data
|
|
|
|
|
2010-10-04 17:28:43 +02:00
|
|
|
.zero 1
|
|
|
|
.align 4
|
2010-10-03 02:46:57 +02:00
|
|
|
foo:
|
|
|
|
.zero 8
|
|
|
|
.long baz - foo
|