mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 09:26:07 +00:00

so that lld accepts relocatable object files produced by `clang -c -g -gz=zstd`. We don't want to increase the size of InputSection, so do redundant but cheap ch_type checks instead. Differential Revision: https://reviews.llvm.org/D129406
19 lines
538 B
ArmAsm
19 lines
538 B
ArmAsm
# UNSUPPORTED: zstd
|
|
# RUN: yaml2obj %s -o %t.o
|
|
# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
# CHECK: error: {{.*}}.o:(.debug_info) is compressed with ELFCOMPRESS_ZSTD, but lld is not built with zstd support
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Type: SHT_PROGBITS
|
|
Name: .debug_info
|
|
Flags: [ SHF_COMPRESSED ]
|
|
AddressAlign: 8
|
|
Content: "020000000000000000000000000000000100000000000000789c030000000001"
|