Rui Ueyama 875ae82b0b Add the --chroot option for --reproduce.
Summary:
If the linker is invoked with `--chroot /foo` and `/bar/baz.o`, it
tries to read the file from `/foo/bar/baz.o`. This feature is useful
when you are dealing with files created by the --reproduce option.

Reviewers: grimar

Subscribers: llvm-commits, emaste

Differential Revision: https://reviews.llvm.org/D35517

llvm-svn: 308646
2017-07-20 18:17:55 +00:00

13 lines
306 B
ArmAsm

# 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