2016-11-28 18:26:21 +08:00
|
|
|
# REQUIRES: x86
|
2018-06-26 01:07:40 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
2016-11-28 18:26:21 +08:00
|
|
|
|
2018-06-26 01:07:40 +08:00
|
|
|
# RUN: ld.lld --hash-style=sysv -no-rosegment -o %t %t.o -shared
|
|
|
|
# RUN: llvm-readelf -s %t | FileCheck %s
|
2016-11-28 18:26:21 +08:00
|
|
|
|
2018-05-16 01:02:35 +08:00
|
|
|
# CHECK: .dynsym {{.*}} A
|
|
|
|
# CHECK-NEXT: .hash {{.*}} A
|
2018-06-27 06:13:32 +08:00
|
|
|
# CHECK-NEXT: .dynstr {{.*}} A
|
2018-06-27 01:04:47 +08:00
|
|
|
# CHECK-NEXT: .text {{.*}} AX
|
2016-11-28 18:26:21 +08:00
|
|
|
# CHECK-NEXT: foo {{.*}} WA
|
2017-01-10 09:21:30 +08:00
|
|
|
# CHECK-NEXT: .dynamic {{.*}} WA
|
2016-11-28 18:26:21 +08:00
|
|
|
|
|
|
|
.section foo, "aw"
|
|
|
|
.byte 0
|