binutils-gdb/ld/testsuite/ld-mips-elf/no-shared-1-o32.s
Richard Sandiford 0a61c8c283 bfd/
* elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0
	for all relocation types.  Allow any type of relocation to refer to
	__gnu_local_gp.

ld/testsuite/
	* ld-mips-elf/no-shared-1-o32.s,
	ld-mips-elf/no-shared-1-o32.d,
	ld-mips-elf/no-shared-1-n32.d,
	ld-mips-elf/no-shared-1-n64.s,
	ld-mips-elf/no-shared-1-n64.d,
	ld-mips-elf/no-shared-1.ld: New tests.
	* ld-mips-elf/mips-elf.exp: Run them.
2008-07-10 19:06:54 +00:00

14 lines
232 B
ArmAsm

.abicalls
.text
.globl __start
.ent __start
__start:
lui $2,%hi(__gnu_local_gp)
addiu $2,$2,%lo(__gnu_local_gp)
lw $2,%got(__gnu_local_gp)($gp)
lw $2,%call16(__gnu_local_gp)($gp)
.end __start
.data
.4byte __gnu_local_gp