diff options
Diffstat (limited to 'test/ELF/chroot.s')
-rw-r--r-- | test/ELF/chroot.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ELF/chroot.s b/test/ELF/chroot.s new file mode 100644 index 000000000000..8c97e99af4dc --- /dev/null +++ b/test/ELF/chroot.s @@ -0,0 +1,12 @@ +# REQUIRES: x86 +# RUN: rm -rf %t.dir +# RUN: mkdir %t.dir +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.dir/chroot.o +# RUN: ld.lld --chroot %t.dir -o %t.exe /chroot.o + +# RUN: echo 'INPUT(/chroot.o)' > %t.dir/scr +# RUN: ld.lld --chroot %t.dir -o %t.exe /scr + +.globl _start +_start: + ret |