summary refs log tree commit diff
path: root/sysdeps/mips
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-04-17 23:56:16 +0000
committerAndreas Jaeger <aj@suse.de>2000-04-17 23:56:16 +0000
commiteb8111cef3dcdcc16f013d660c31ccfc281c7d3a (patch)
treebe9396af97a1b08202c7bbc66b582cbecb8a6251 /sysdeps/mips
parent3c0b9326b17513a34d80c93db5d3d373e49ac937 (diff)
downloadglibc-eb8111cef3dcdcc16f013d660c31ccfc281c7d3a.tar.gz
glibc-eb8111cef3dcdcc16f013d660c31ccfc281c7d3a.tar.xz
glibc-eb8111cef3dcdcc16f013d660c31ccfc281c7d3a.zip
(elf_machine_relplt): Removed, it's not needed.
(_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
Diffstat (limited to 'sysdeps/mips')
-rw-r--r--sysdeps/mips/dl-machine.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/sysdeps/mips/dl-machine.h b/sysdeps/mips/dl-machine.h
index 19cdd245fe..a15b78d52d 100644
--- a/sysdeps/mips/dl-machine.h
+++ b/sysdeps/mips/dl-machine.h
@@ -198,9 +198,6 @@ elf_machine_runtime_link_map (ElfW(Addr) gpreg, ElfW(Addr) stub_pc)
   return NULL;
 }
 
-/* Mips has no PLT but define elf_machine_relplt to be elf_machine_rel. */
-#define elf_machine_relplt elf_machine_rel
-
 /* Define mips specific runtime resolver. The function __dl_runtime_resolve
    is called from assembler function _dl_runtime_resolve which converts
    special argument registers t7 ($15) and t8 ($24):
@@ -292,9 +289,8 @@ asm ("\n								      \
 	.ent	_dl_runtime_resolve\n					      \
 _dl_runtime_resolve:\n							      \
 	.set noreorder\n						      \
-	# Save slot call pc.\n						      \
-	# XXX: Is this ok? \
-	move	$3, $31\n						      \
+	# Save GP.\n						      \
+	move	$3, $28\n						      \
 	# Modify t9 ($25) so as to point .cpload instruction.\n		      \
 	addu	$25,8\n							      \
 	# Compute GP.\n							      \