llvm-project/lld/test/old-elf/Mips/entry-name.test

27 lines
688 B
Plaintext

# Check name of executable entry symbol.
# RUN: yaml2obj -format=elf %s > %t.o
# RUN: lld -flavor old-gnu -target mipsel --noinhibit-exec -o %t.exe %t.o
# RUN: llvm-nm %t.exe | FileCheck %s
# CHECK: U __start
# CHECK: {{[0-9A-F]+}} T main
FileHeader:
Class: ELFCLASS32
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_MIPS
Flags: [ EF_MIPS_ABI_O32, EF_MIPS_ARCH_32 ]
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 0x04
Size: 0x04
Symbols:
Global:
- Name: main
Section: .text