2020-04-09 03:21:16 +08:00
|
|
|
# REQUIRES: x86
|
2016-05-02 21:54:10 +08:00
|
|
|
|
|
|
|
# RUN: rm -rf %t.dir
|
|
|
|
# RUN: mkdir -p %t.dir
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.dir/foo.o
|
|
|
|
# RUN: cd %t.dir
|
2016-05-02 23:16:43 +08:00
|
|
|
# RUN: llvm-ar --format=gnu rcT foo.a foo.o
|
2017-09-21 06:59:50 +08:00
|
|
|
|
2020-04-09 03:21:16 +08:00
|
|
|
# RUN: ld.lld -m elf_x86_64 foo.a -o /dev/null --reproduce repro.tar
|
|
|
|
# RUN: tar tf repro.tar | FileCheck -DPATH='repro/%:t.dir' %s
|
2016-05-02 21:54:10 +08:00
|
|
|
|
2020-04-09 03:21:16 +08:00
|
|
|
# CHECK: [[PATH]]/foo.a
|
|
|
|
# CHECK: [[PATH]]/foo.o
|
|
|
|
|
|
|
|
# RUN: ld.lld -m elf_x86_64 --whole-archive foo.a -o /dev/null --reproduce repro2.tar
|
|
|
|
# RUN: tar tf repro2.tar | FileCheck -DPATH='repro2/%:t.dir' --check-prefix=CHECK2 %s
|
|
|
|
|
|
|
|
# CHECK2: [[PATH]]/foo.a
|
|
|
|
# CHECK2: [[PATH]]/foo.o
|
2017-09-21 06:59:50 +08:00
|
|
|
|
2016-05-02 21:54:10 +08:00
|
|
|
.globl _start
|
|
|
|
_start:
|
|
|
|
nop
|