# MIPS BFD linker puts _gp_disp symbol into DSO files and assigns zero
# version definition index to it. This value means 'unversioned local symbol'
# while _gp_disp is a section global symbol. We have to handle this bug
# in the LLD because BFD linker is used for building MIPS toolchain
# libraries. This test checks such handling.

# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
# RUN: ld.lld %t.o %S/Inputs/mips-gp-dips-corrupt-ver.so

  .global __start
  .text
__start:
  lw     $t0, %got(foo)($gp)

# MIPS BFD linker puts _gp_disp symbol into DSO files and assigns zero
# version definition index to it. This value means 'unversioned local symbol'
# while _gp_disp is a section global symbol. We have to handle this bug
# in the LLD because BFD linker is used for building MIPS toolchain
# libraries. This test checks such handling.

# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
# RUN: ld.lld %t.o %S/Inputs/mips-gp-dips-corrupt-ver.so

# REQUIRES: mips

  .global __start
  .text
__start:
  lw     $t0, %got(foo)($gp)

Mark the test as required MIPS target support. NFC
[ELF][MIPS] Mark the test as required MIPS target support. NFC

git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@324468 91177308-0d34-0410-b5e6-96231b3b80d8
