2 # Check MIPS .MIPS.options section generation.
4 # RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %t1.o
5 # RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux \
6 # RUN: %S/Inputs/mips-dynamic.s -o %t2.o
7 # RUN: echo "SECTIONS { \
8 # RUN: . = 0x100000000; \
9 # RUN: .got : { *(.got) } }" > %t.rel.script
10 # RUN: ld.lld %t1.o %t2.o --gc-sections --script %t.rel.script -shared -o %t.so
11 # RUN: llvm-readobj -l --symbols -A %t.so | FileCheck %s
16 lui $gp
, %hi
(%neg(%gp_rel
(g1
)))
18 # CHECK: ProgramHeader {
19 # CHECK: Type: PT_MIPS_OPTIONS
21 # CHECK-NEXT: VirtualAddress:
22 # CHECK-NEXT: PhysicalAddress:
23 # CHECK-NEXT: FileSize:
24 # CHECK-NEXT: MemSize:
28 # CHECK-NEXT: Alignment: 8
32 # CHECK-NEXT: Value: 0x[[GP:[0-9A-F]+]]
34 # CHECK: MIPS Options {
35 # CHECK-NEXT: ODK_REGINFO {
36 # CHECK-NEXT: GP: 0x[[GP]]
37 # CHECK-NEXT: General Mask: 0x10000001
38 # CHECK-NEXT: Co-Proc Mask0: 0x0
39 # CHECK-NEXT: Co-Proc Mask1: 0x0
40 # CHECK-NEXT: Co-Proc Mask2: 0x0
41 # CHECK-NEXT: Co-Proc Mask3: 0x0