2015-09-30 02:44:18 +08:00
|
|
|
# RUN: llvm-mc %s -o %t -filetype=obj -triple x86_64-pc-linux
|
2015-08-04 23:45:54 +08:00
|
|
|
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: not ld.lld %t %p/Inputs/invalid-data-encoding.a -o %t2 2>&1 | \
|
2015-09-30 02:44:18 +08:00
|
|
|
# RUN: FileCheck --check-prefix=INVALID-DATA-ENC %s
|
2016-03-12 16:31:34 +08:00
|
|
|
# INVALID-DATA-ENC: invalid data encoding: test.o
|
2015-08-12 00:30:34 +08:00
|
|
|
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: not ld.lld %t %p/Inputs/invalid-file-class.a -o %t2 2>&1 | \
|
2015-09-30 02:44:18 +08:00
|
|
|
# RUN: FileCheck --check-prefix=INVALID-FILE-CLASS %s
|
2016-03-12 16:31:34 +08:00
|
|
|
# INVALID-FILE-CLASS: invalid file class: test.o
|
2015-08-12 01:33:02 +08:00
|
|
|
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: not ld.lld %p/Inputs/invalid-symtab-sh_info.elf -o %t2 2>&1 | \
|
2015-09-30 02:44:18 +08:00
|
|
|
# RUN: FileCheck --check-prefix=INVALID-SYMTAB-SHINFO %s
|
2016-03-12 16:31:34 +08:00
|
|
|
# INVALID-SYMTAB-SHINFO: invalid sh_info in symbol table
|
2015-08-25 06:00:25 +08:00
|
|
|
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: not ld.lld %p/Inputs/invalid-binding.elf -o %t2 2>&1 | \
|
2015-09-30 02:44:18 +08:00
|
|
|
# RUN: FileCheck --check-prefix=INVALID-BINDING %s
|
2016-03-11 22:43:02 +08:00
|
|
|
# INVALID-BINDING: unexpected binding
|
2015-09-24 22:55:25 +08:00
|
|
|
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: not ld.lld %p/Inputs/invalid-section-index.elf -o %t2 2>&1 | \
|
2016-03-12 16:31:34 +08:00
|
|
|
# RUN: FileCheck --check-prefix=INVALID-SECTION-INDEX-LLD %s
|
|
|
|
# INVALID-SECTION-INDEX-LLD: invalid section index
|
2015-09-30 02:44:18 +08:00
|
|
|
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: not ld.lld %p/Inputs/invalid-shstrndx.so -o %t2 2>&1 | \
|
2015-09-30 02:44:18 +08:00
|
|
|
# RUN: FileCheck --check-prefix=INVALID-SECTION-INDEX %s
|
2016-03-12 16:31:34 +08:00
|
|
|
# INVALID-SECTION-INDEX: Invalid section index
|
2015-09-30 02:44:18 +08:00
|
|
|
|
2016-03-21 22:57:20 +08:00
|
|
|
# RUN: not ld.lld %p/Inputs/invalid-shentsize-zero.elf -o %t2 2>&1 | \
|
|
|
|
# RUN: FileCheck --check-prefix=INVALID-SHENTSIZE-ZERO %s
|
|
|
|
# INVALID-SHENTSIZE-ZERO: SHF_MERGE section size must be a multiple of sh_entsize
|
|
|
|
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: not ld.lld %p/Inputs/invalid-multiple-eh-relocs.elf -o %t2 2>&1 | \
|
2015-11-12 03:54:14 +08:00
|
|
|
# RUN: FileCheck --check-prefix=INVALID-EH-RELOCS %s
|
2016-03-12 16:31:34 +08:00
|
|
|
# INVALID-EH-RELOCS: multiple relocation sections to .eh_frame are not supported
|
2015-11-12 03:54:14 +08:00
|
|
|
|
2015-09-30 02:44:18 +08:00
|
|
|
.long foo
|