2015-10-20 05:00:02 +08:00
|
|
|
// REQUIRES: x86
|
|
|
|
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
|
2015-11-18 14:11:01 +08:00
|
|
|
// RUN: not ld.lld %t.o -o %t.so 2>&1 | FileCheck %s
|
2015-10-20 05:00:02 +08:00
|
|
|
// CHECK: SHF_MERGE section size must be a multiple of sh_entsize
|
|
|
|
|
2016-09-21 11:22:18 +08:00
|
|
|
// Test that we accept a zero sh_entsize.
|
2016-09-29 17:39:06 +08:00
|
|
|
// RUN: ld.lld %p/Inputs/shentsize-zero.elf -o %t2
|
2016-09-21 11:22:18 +08:00
|
|
|
|
|
|
|
.section .foo,"aM",@progbits,4
|
|
|
|
.short 42
|