2016-09-21 06:43:15 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
|
|
|
|
|
|
|
|
# RUN: echo "SECTIONS { foo : {*(foo)} }" > %t.script
|
2017-10-06 17:37:44 +08:00
|
|
|
# RUN: ld.lld --hash-style=sysv -o %t1 --script %t.script %t -shared
|
2016-09-21 06:43:15 +08:00
|
|
|
# RUN: llvm-readobj -elf-output-style=GNU -s %t1 | FileCheck %s
|
|
|
|
|
2016-09-30 06:48:55 +08:00
|
|
|
# CHECK: .text {{.*}} AX
|
|
|
|
# CHECK-NEXT: .dynsym {{.*}} A
|
2016-09-21 06:43:15 +08:00
|
|
|
# CHECK-NEXT: .hash {{.*}} A
|
|
|
|
# CHECK-NEXT: .dynstr {{.*}} A
|
|
|
|
# CHECK-NEXT: foo {{.*}} WA
|
2017-01-10 09:21:30 +08:00
|
|
|
# CHECK-NEXT: .dynamic {{.*}} WA
|
2016-09-21 06:43:15 +08:00
|
|
|
|
|
|
|
.section foo, "aw"
|
|
|
|
.byte 0
|