xref: /llvm-project/lld/test/ELF/chroot.s (revision 875ae82b0b2fc0c346c2b434d558f1ca8eb2fa09)
1# REQUIRES: x86
2# RUN: rm -rf %t.dir
3# RUN: mkdir %t.dir
4# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.dir/chroot.o
5# RUN: ld.lld --chroot %t.dir -o %t.exe /chroot.o
6
7# RUN: echo 'INPUT(/chroot.o)' > %t.dir/scr
8# RUN: ld.lld --chroot %t.dir -o %t.exe /scr
9
10.globl _start
11_start:
12  ret
13