forked from OSchip/llvm-project
31 lines
703 B
Plaintext
31 lines
703 B
Plaintext
# 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 %t.so | FileCheck %s
|
|
|
|
# CHECK-NOT: Name: .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
|