2019-07-03 10:29:02 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# Tests error on archive file without a symbol table
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux -o %t.o %s
|
2019-07-03 13:52:35 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux -o %t.archive.o %S/Inputs/archive.s
|
2019-07-03 10:29:02 +08:00
|
|
|
# RUN: rm -f %t.a
|
|
|
|
# RUN: llvm-ar crS %t.a %t.archive.o
|
|
|
|
|
2019-07-08 19:14:10 +08:00
|
|
|
# RUN: not ld.lld -o /dev/null %t.o %t.a 2>&1 | FileCheck %s
|
2019-07-03 10:29:02 +08:00
|
|
|
|
|
|
|
.globl _start
|
|
|
|
_start:
|
|
|
|
|
|
|
|
# CHECK: error: {{.*}}.a: archive has no index; run ranlib to add one
|