]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/reproduce-linkerscript.s
Vendor import of lld trunk r291274:
[FreeBSD/FreeBSD.git] / test / ELF / reproduce-linkerscript.s
1 # REQUIRES: x86, shell
2
3 # RUN: rm -rf %t.dir
4 # RUN: mkdir -p %t.dir/build
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.dir/build/foo.o
6 # RUN: echo "INPUT(\"%t.dir/build/foo.o\")" > %t.dir/build/foo.script
7 # RUN: cd %t.dir
8 # RUN: ld.lld build/foo.script -o bar --reproduce repro.tar
9 # RUN: tar xf repro.tar
10 # RUN: diff build/foo.script repro/%:t.dir/build/foo.script
11 # RUN: diff build/foo.o repro/%:t.dir/build/foo.o
12
13 .globl _start
14 _start:
15   mov $60, %rax
16   mov $42, %rdi
17   syscall