2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: echo "aliasto__text = __text; SECTIONS { .text 0x1000 : { __text = . ; *(.text) } }" > %t.script
4 # RUN: ld.lld -pie -o %t --script %t.script %t.o
5 # RUN: llvm-readobj --symbols %t | FileCheck %s
7 ## Check that alias 'aliasto__text' has the correct value.
8 ## (It should belong to the section .text and point to it's start).
11 # CHECK: Name: aliasto__text
12 # CHECK-NEXT: Value: 0x1000
14 # CHECK-NEXT: Binding: Global
15 # CHECK-NEXT: Type: None
16 # CHECK-NEXT: Other: 0
17 # CHECK-NEXT: Section: .text
22 # CHECK-NEXT: Value: 0x1000
24 # CHECK-NEXT: Binding: Global
25 # CHECK-NEXT: Type: None
26 # CHECK-NEXT: Other: 0
27 # CHECK-NEXT: Section: .text
32 .type _start, %function