annotate lld/test/ELF/mips-gp-disp-ver.s @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # REQUIRES: mips
anatofuz
parents:
diff changeset
2 # MIPS BFD linker puts _gp_disp symbol into DSO files and assigns zero
anatofuz
parents:
diff changeset
3 # version definition index to it. This value means 'unversioned local symbol'
anatofuz
parents:
diff changeset
4 # while _gp_disp is a section global symbol. We have to handle this bug
anatofuz
parents:
diff changeset
5 # in the LLD because BFD linker is used for building MIPS toolchain
anatofuz
parents:
diff changeset
6 # libraries. This test checks such handling.
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
anatofuz
parents:
diff changeset
9 # RUN: ld.lld %t.o %S/Inputs/mips-gp-dips-corrupt-ver.so
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 .global __start
anatofuz
parents:
diff changeset
12 .text
anatofuz
parents:
diff changeset
13 __start:
anatofuz
parents:
diff changeset
14 lw $t0, %got(foo)($gp)