# Check that LLD does not write a .MIPS.options section if input # object file does not contain such section. # RUN: yaml2obj -format=elf %s > %t.o # RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t.o # RUN: llvm-readobj -s -dynamic-table %t.so | FileCheck %s # CHECK: Sections [ # CHECK-NOT: Name: .MIPS.options # CHECK: DynamicSection [ # CHECK-NOT: 0x{{[0-9A-F]+}} MIPS_OPTIONS FileHeader: Class: ELFCLASS64 Data: ELFDATA2LSB Type: ET_REL Machine: EM_MIPS Flags: [EF_MIPS_CPIC, EF_MIPS_PIC, EF_MIPS_ARCH_64R2] 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