2015-08-21 00:18:30 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux < %s | llvm-readobj -r -t | FileCheck %s
|
2015-03-25 21:16:53 +08:00
|
|
|
|
2015-04-15 23:59:37 +08:00
|
|
|
// CHECK: Section {{.*}} .rela.text {
|
2015-03-25 21:16:53 +08:00
|
|
|
// CHECK-NEXT: 0x0 R_X86_64_32 d 0x0
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2015-08-21 00:18:30 +08:00
|
|
|
// CHECK: Symbol {
|
|
|
|
// CHECK: Name: d2
|
|
|
|
// CHECK-NEXT: Value: 0x2A
|
|
|
|
|
2015-03-25 21:16:53 +08:00
|
|
|
a:
|
|
|
|
b = a
|
|
|
|
c = a
|
|
|
|
d = a
|
|
|
|
.weak d
|
|
|
|
.long d + (b - c)
|
2015-03-27 05:11:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
a2:
|
|
|
|
.weak b2
|
|
|
|
b2 = a2
|
|
|
|
c2 = b2 - a2
|
2015-08-21 00:18:30 +08:00
|
|
|
d2 = b2 - a2 + 42
|