zig/deps/lld/test/ELF/compressed-debug-input-err.s

12 lines
391 B
ArmAsm
Raw Normal View History

2018-08-05 05:47:16 +08:00
# REQUIRES: zlib, x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s
2019-02-08 06:07:18 +08:00
## Check we are able to report zlib uncompress errors.
# CHECK: error: {{.*}}.o:(.debug_str): uncompress failed: zlib error: Z_DATA_ERROR
2018-08-05 05:47:16 +08:00
.section .zdebug_str,"MS",@progbits,1
.ascii "ZLIB"
.byte 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1