2 # In case of linking PIC and non-PIC code together and generation
3 # of a relocatable object, all PIC symbols should have STO_MIPS_PIC
4 # flag in the symbol table of the output file.
6 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t-npic.o
7 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \
8 # RUN: %p/Inputs/mips-pic.s -o %t-pic.o
9 # RUN: ld.lld -r %t-npic.o %t-pic.o -o %t-rel.o
10 # RUN: llvm-readobj --symbols %t-rel.o | FileCheck %s
16 # CHECK-NEXT: Binding: Local
17 # CHECK-NEXT: Type: None
18 # CHECK-NEXT: Other: 0
19 # CHECK-NEXT: Section: .text
25 # CHECK-NEXT: Binding: Global
26 # CHECK-NEXT: Type: Function
28 # CHECK-NEXT: STO_MIPS_PIC
30 # CHECK-NEXT: Section: .text
32 # CHECK-NEXT: Symbol {
33 # CHECK-NEXT: Name: foo1b
36 # CHECK-NEXT: Binding: Global
37 # CHECK-NEXT: Type: Function
39 # CHECK-NEXT: STO_MIPS_PIC
41 # CHECK-NEXT: Section: .text
43 # CHECK-NEXT: Symbol {
44 # CHECK-NEXT: Name: foo2
47 # CHECK-NEXT: Binding: Global
48 # CHECK-NEXT: Type: Function
50 # CHECK-NEXT: STO_MIPS_PIC
52 # CHECK-NEXT: Section: .text