20 lines · plain
1# REQUIRES: mips2# Check R_MIPS_GOT16 relocation against merge section.3 4# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux -o %t.o %s5# RUN: ld.lld -shared -o %t.so %t.o6# RUN: llvm-readelf -A %t.so | FileCheck %s7 8# CHECK: Local entries:9# CHECK-NEXT: Address Access Initial10# CHECK-NEXT: {{[0-9a-f]+}} -32744(gp) 0000000011# CHECK-NEXT: {{[0-9a-f]+}} -32740(gp) 0001000012 13 .text14 lw $t9, %got($.str)($gp)15 addiu $a0, $t9, %lo($.str)16 17 .section .rodata.str,"aMS",@progbits,118$.str:19 .asciz "foo"20