# Check that LLD does not write a .reginfo section if input # object file does not contain such section. # RUN: yaml2obj -format=elf %s > %t.o # RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-readobj -s %t.so | FileCheck %s # CHECK-NOT: Name: .reginfo FileHeader: Class: ELFCLASS32 Data: ELFDATA2LSB Type: ET_REL Machine: EM_MIPS Flags: [EF_MIPS_CPIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32R2] Sections: - Name: .text Type: SHT_PROGBITS Size: 4 AddressAlign: 16 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] Symbols: Global: - Name: T0 Section: .text Type: STT_FUNC Value: 0 Size: 4