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.
14 lines
233 B
ArmAsm
14 lines
233 B
ArmAsm
.abicalls
|
|
.text
|
|
.globl __start
|
|
.ent __start
|
|
__start:
|
|
lui $2,%hi(__gnu_local_gp)
|
|
daddiu $2,$2,%lo(__gnu_local_gp)
|
|
ld $2,%got(__gnu_local_gp)($gp)
|
|
ld $2,%call16(__gnu_local_gp)($gp)
|
|
.end __start
|
|
|
|
.data
|
|
.8byte __gnu_local_gp
|