mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
0a61c8c283
* 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.
12 lines
175 B
Plaintext
12 lines
175 B
Plaintext
SECTIONS
|
|
{
|
|
. = 0x50000;
|
|
.text : { *(.text) }
|
|
.MIPS.stubs : { *(.MIPS.stubs) }
|
|
|
|
. = 0x60000;
|
|
.data : { *(.data) }
|
|
_gp = ALIGN (16) + 0x7ff0;
|
|
.got : { *(.got) }
|
|
}
|