blob: 4a251d6172da8d9a2066d10541d8dadeaceb3dca [file] [log] [blame]
George Rimar36b2c0a2016-06-28 08:07:26 +00001# REQUIRES: x86
2
3# RUN: echo "VERSION_1.0{ \
4# RUN: global: bar; \
5# RUN: };" > %t.script
6# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
7# RUN: not ld.lld --version-script %t.script -shared --no-undefined-version \
8# RUN: %t.o -o %t.so 2>&1 | FileCheck -check-prefix=ERR1 %s
9# ERR1: version script assignment of VERSION_1.0 to symbol bar failed: symbol not defined
10
11# RUN: echo "VERSION_1.0{ \
12# RUN: global: und; \
13# RUN: };" > %t2.script
14# RUN: not ld.lld --version-script %t2.script -shared --no-undefined-version \
15# RUN: %t.o -o %t.so 2>&1 | FileCheck -check-prefix=ERR2 %s
16# ERR2: version script assignment of VERSION_1.0 to symbol und failed: symbol not defined
17
18.text
19.globl foo
20.type foo,@function
21foo:
22callq und@PLT