]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/ehdr_start.s
Vendor import of lld trunk r290819:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / ehdr_start.s
1 # REQUIRES: x86
2
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
4 # RUN: echo "SECTIONS { }" > %t.script
5 # RUN: not ld.lld %t.o -script %t.script -o %t 2>&1 | FileCheck %s
6 # CHECK: error: {{.*}}:(.text+0x0): undefined symbol '__ehdr_start'
7
8 .text
9 .global _start, __ehdr_start
10 _start:
11         .quad __ehdr_start