2017-07-04 00:49:17 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
|
|
|
# Test that we don't error on undefined versions when static linking.
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
|
|
|
# RUN: ld.lld %t.o -o %t
|
2017-07-04 22:59:28 +08:00
|
|
|
# RUN: echo "DEFINED { global: *; };" > %t.map
|
|
|
|
# RUN: ld.lld %t.o --version-script %t.map -o %t
|
2017-07-04 00:49:17 +08:00
|
|
|
|
|
|
|
.global _start
|
|
|
|
.global bar
|
|
|
|
.symver _start, bar@@UNDEFINED
|
|
|
|
_start:
|