mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +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.
14 lines
232 B
ArmAsm
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
|