xref: /llvm-project/lld/test/ELF/linkerscript/undef.s (revision 1044ee827af606bedd4d3dabd83414147ca33059)
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3
4# RUN: echo "SECTIONS { patatino = 0x1234; }" > %t.script
5# RUN: ld.lld -o %t1 --script %t.script %t
6# RUN: llvm-nm %t1 | FileCheck %s
7# CHECK: 0000000000001234 A patatino
8
9.global _start
10_start:
11  call patatino
12