zig/deps/lld/test/ELF/mips-relocatable.s
Andrew Kelley 4794281d64 embed LLD 5.0.0
This is 48aaa9f66120f72b5d7e4a90b32fee40a3386ce9 from the
git monorepo.
2017-08-27 17:46:59 -04:00

22 lines
413 B
ArmAsm

# Check linking MIPS code in case of -r linker's option.
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
# RUN: ld.lld -r -o %t-r.o %t.o
# RUN: llvm-objdump -s -t %t-r.o | FileCheck %s
# REQUIRES: mips
.text
.global __start
__start:
lw $t0,%call16(__start)($gp)
foo:
nop
.section .rodata, "a"
v:
.gpword foo
# CHECK-NOT: Contents of section .got:
# CHECK-NOT: {{.*}} _gp