2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: echo "SECTIONS { foo = ABSOLUTE(.) + 1; };" > %t.script
4 # RUN: ld.lld -o %t --script %t.script %t.o
5 # RUN: llvm-readobj --symbols %t | FileCheck %s
7 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
8 # RUN: echo "PROVIDE(foo = 1 + ABSOLUTE(ADDR(.text)));" > %t.script
9 # RUN: ld.lld -o %t --script %t.script %t.o
10 # RUN: llvm-readobj --symbols %t | FileCheck --check-prefix=CHECK-RHS %s
15 # CHECK-NEXT: Binding:
18 # CHECK-NEXT: Section: Absolute
21 # CHECK-RHS: Name: foo
22 # CHECK-RHS-NEXT: Value: 0x201121
23 # CHECK-RHS-NEXT: Size:
24 # CHECK-RHS-NEXT: Binding:
25 # CHECK-RHS-NEXT: Type:
26 # CHECK-RHS-NEXT: Other:
27 # CHECK-RHS-NEXT: Section: Absolute