2017-07-19 06:52:44 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
2017-07-19 07:26:16 +08:00
|
|
|
# RUN: echo "FBSD_1.1 {}; FBSD_1.2 {};" > %t.ver
|
2017-07-19 06:52:44 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
|
|
# RUN: ld.lld -shared %t.o -o %t.so --version-script=%t.ver
|
2017-07-19 07:26:16 +08:00
|
|
|
# RUN: llvm-readobj --dyn-symbols --elf-output-style=GNU %t.so | FileCheck %s
|
2017-07-19 06:52:44 +08:00
|
|
|
|
|
|
|
.weak openat
|
|
|
|
openat:
|
2017-07-20 02:24:38 +08:00
|
|
|
|
|
|
|
.global openat@FBSD_1.1
|
2017-07-19 07:26:16 +08:00
|
|
|
openat@FBSD_1.1 = openat
|
2017-07-20 02:24:38 +08:00
|
|
|
|
|
|
|
.global openat@@FBSD_1.2
|
2017-07-19 06:52:44 +08:00
|
|
|
openat@@FBSD_1.2 = openat
|
|
|
|
|
2017-07-19 07:26:16 +08:00
|
|
|
# CHECK-DAG: openat@FBSD_1.1
|
|
|
|
# CHECK-DAG: openat@@FBSD_1.2
|