2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4 # RUN: echo "SECTIONS { foo : {*(foo)} }" > %t.script
5 # RUN: ld.lld --hash-style=sysv -o %t --script %t.script %t.o -shared
6 # RUN: llvm-readelf -S %t | FileCheck %s
8 # CHECK: .dynsym {{.*}} A
9 # CHECK-NEXT: .hash {{.*}} A
10 # CHECK-NEXT: .dynstr {{.*}} A
11 # CHECK-NEXT: .text {{.*}} AX
12 # CHECK-NEXT: .dynamic {{.*}} WA
13 # CHECK-NEXT: foo {{.*}} WA