aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/version-script-undef-version.s
blob: 40dc816f5005ba83d150eb08bd55bba6da181ac9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# 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
# RUN: echo "DEFINED { global: *; };" > %t.map
# RUN: ld.lld %t.o --version-script %t.map -o %t

.global _start
.global bar
.symver _start, bar@@UNDEFINED
_start: