[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / Inputs / mips-gp-dips-corrupt-ver.s
blob42bd32a1e73af04aa70998bea22350966ac69d11
1 # Source file for mips-gp-dips-corrupt-ver.so
3 # % cat gpdisp.ver
4 # LLD_1.0.0 { global: foo; };
6 # % as mips-gp-dips-corrupt-ver.s -o mips-gp-dips-corrupt-ver.o
7 # % ld -shared -o mips-gp-dips-corrupt-ver.so \
8 # --version-script gpdisp.ver mips-gp-dips-corrupt-ver.o
10 .global foo
11 .text
12 foo:
13 lui $t0, %hi(_gp_disp)
14 addi $t0, $t0, %lo(_gp_disp)