2 # a) Linking a non-shared executable file.
3 # b) Relocations' targets are undefined symbols.
5 # a) There should be no dynamic relocations.
6 # b) There should be no PLT entries.
8 # RUN: yaml2obj -format=elf %s > %t-obj
9 # RUN: lld -flavor gnu -target mipsel --noinhibit-exec -e T0 -o %t2-exe %t-obj
10 # RUN: llvm-readobj -dt -r -s %t2-exe | FileCheck -check-prefix=PLT-SYM %s
14 # PLT-SYM-NOT: Name: .plt ({{[0-9]+}})
16 # PLT-SYM: Relocations [
19 # PLT-SYM: DynamicSymbols [
20 # PLT-SYM-NEXT: Symbol {
21 # PLT-SYM-NEXT: Name: @ (0)
22 # PLT-SYM-NEXT: Value: 0x0
23 # PLT-SYM-NEXT: Size: 0
24 # PLT-SYM-NEXT: Binding: Local (0x0)
25 # PLT-SYM-NEXT: Type: None (0x0)
26 # PLT-SYM-NEXT: Other: 0
27 # PLT-SYM-NEXT: Section: Undefined (0x0)
32 FileHeader: !FileHeader
37 Flags: [ EF_MIPS_CPIC, EF_MIPS_ABI_O32,
38 EF_MIPS_ARCH_32R2, EF_MIPS_MICROMIPS ]
43 Content: "0000000000000000"
45 Flags: [SHF_EXECINSTR, SHF_ALLOC]
49 Content: "0000000000000000"
51 Flags: [SHF_WRITE, SHF_ALLOC]
60 Type: R_MICROMIPS_26_S1
69 Type: R_MICROMIPS_HI16
72 Type: R_MICROMIPS_LO16
79 Type: R_MICROMIPS_HI16
82 Type: R_MICROMIPS_LO16
94 Other: [ STO_MIPS_MICROMIPS ]