2 # Check microMIPS GOT relocations for O32 ABI.
4 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux -mattr=micromips \
6 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux -mattr=micromips \
7 # RUN: %S/Inputs/mips-dynamic.s -o %t2.o
8 # RUN: ld.lld %t2.o -shared -o %t.so
9 # RUN: ld.lld %t1.o %t.so -o %t.exe
10 # RUN: llvm-readobj -A %t.exe | FileCheck %s
12 # CHECK: Local entries [
14 # CHECK-NEXT: Address:
15 # CHECK-NEXT: Access: -32744
16 # CHECK-NEXT: Initial: 0x30000
19 # CHECK-NEXT: Address:
20 # CHECK-NEXT: Access: -32740
21 # CHECK-NEXT: Initial: 0x40000
24 # CHECK-NEXT: Global entries [
26 # CHECK-NEXT: Address:
27 # CHECK-NEXT: Access: -32736
28 # CHECK-NEXT: Initial: 0x0
29 # CHECK-NEXT: Value: 0x0
30 # CHECK-NEXT: Type: Function
31 # CHECK-NEXT: Section: Undefined
32 # CHECK-NEXT: Name: foo0
39 lw $
4, %got
(data
)($
28)
40 addiu $
4, $
4, %lo
(data
)
41 lw $
25, %call16
(foo0
)($
28)