1# REQUIRES: mips 2# Check R_MIPS_GOT16 relocation against merge section. 3 4# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux -o %t.o %s 5# RUN: ld.lld -shared -o %t.so %t.o 6# RUN: llvm-readelf -A %t.so | FileCheck %s 7 8# CHECK: Local entries: 9# CHECK-NEXT: Address Access Initial 10# CHECK-NEXT: {{[0-9a-f]+}} -32744(gp) 00000000 11# CHECK-NEXT: {{[0-9a-f]+}} -32740(gp) 00010000 12 13 .text 14 lw $t9, %got($.str)($gp) 15 addiu $a0, $t9, %lo($.str) 16 17 .section .rodata.str,"aMS",@progbits,1 18$.str: 19 .asciz "foo" 20