binutils-gdb/ld/testsuite/ld-mips-elf/no-shared-1.ld
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

12 lines
175 B
Plaintext

SECTIONS
{
. = 0x50000;
.text : { *(.text) }
.MIPS.stubs : { *(.MIPS.stubs) }
. = 0x60000;
.data : { *(.data) }
_gp = ALIGN (16) + 0x7ff0;
.got : { *(.got) }
}