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