summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/local-undefined-symbol.s
blob: c2ab207359bf662af7f228d370dd27dfc88033c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck %s

# CHECK: error: undefined symbol: foo

.global _start
_start:
 jmp foo

.local foo
OpenPOWER on IntegriCloud