15 lines · plain
1# REQUIRES: mips2# MIPS BFD linker puts _gp_disp symbol into DSO files and assigns zero3# version definition index to it. This value means 'unversioned local symbol'4# while _gp_disp is a section global symbol. We have to handle this bug5# in the LLD because BFD linker is used for building MIPS toolchain6# libraries. This test checks such handling.7 8# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o9# RUN: ld.lld %t.o %S/Inputs/mips-gp-dips-corrupt-ver.so -o /dev/null10 11 .global __start12 .text13__start:14 lw $t0, %got(foo)($gp)15