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 {
|
2014-04-30 16:25:02 +00:00
|
|
|
// CHECK: Name: baz
|
2013-04-12 04:06:46 +00:00
|
|
|
// CHECK-NEXT: Value: 0x0
|
|
|
|
// CHECK-NEXT: Size: 0
|
|
|
|
// CHECK-NEXT: Binding: Global
|
|
|
|
// CHECK-NEXT: Type: None
|
|
|
|
// CHECK-NEXT: Other: 0
|
2014-03-24 05:00:34 +00:00
|
|
|
// CHECK-NEXT: Section: Undefined (0x0)
|
2013-04-12 04:06:46 +00:00
|
|
|
// 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
|