about summary refs log tree commit diff
path: root/sysdeps/mips/elf/start.S
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-04-21 16:37:58 +0000
committerAndreas Jaeger <aj@suse.de>2000-04-21 16:37:58 +0000
commit5ac4c397b78c700aac743ff67e7a987d734e63bd (patch)
treeae5e9e6ee77aa60516c391d85b744af23305b03f /sysdeps/mips/elf/start.S
parentec92d937468b45df5efa4b00502e0c140119db0c (diff)
downloadglibc-5ac4c397b78c700aac743ff67e7a987d734e63bd.tar.gz
glibc-5ac4c397b78c700aac743ff67e7a987d734e63bd.tar.xz
glibc-5ac4c397b78c700aac743ff67e7a987d734e63bd.zip
2000-04-21 Andreas Jaeger <aj@suse.de>
	* sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
	* sysdeps/mips/mips64/add_n.S: Likewise.
	* sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
	* sysdeps/mips/mips64/lshift.S: Likewise.
	* sysdeps/mips/mips64/mul_1.S: Likewise.
	* sysdeps/mips/mips64/rshift.S: Likewise.
	* sysdeps/mips/mips64/setjmp.S: Likewise.
	* sysdeps/mips/mips64/sub_n.S: Likewise.
	* sysdeps/mips/mips64/submul_1.S: Likewise.

	* sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
	and update comment.  The strtab from _dl_relocate_object can be
	used.
Diffstat (limited to 'sysdeps/mips/elf/start.S')
-rw-r--r--sysdeps/mips/elf/start.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/mips/elf/start.S b/sysdeps/mips/elf/start.S
index b432953251..7fee4e71c3 100644
--- a/sysdeps/mips/elf/start.S
+++ b/sysdeps/mips/elf/start.S
@@ -51,7 +51,7 @@
 		      char **argv, void (*init) (void), void (*fini) (void),
 		      void (*rtld_fini) (void), void *stack_end)
 */
-#ifdef PIC
+#ifdef __PIC__
 /* A macro to (re)initialize gp. We can get the run time address of 0f in
    ra ($31) by blezal instruction. In this early phase, we can't save gp
    in stack and .cprestore doesn't work properly. So we set gp by using
@@ -67,7 +67,7 @@
 	.text
 	.globl ENTRY_POINT
 ENTRY_POINT:
-#ifdef PIC
+#ifdef __PIC__
 	SET_GP
 #endif
 	move $31, $0
@@ -93,7 +93,6 @@ ENTRY_POINT:
 	sw $2, 20($29)		/* rtld_fini */
 	sw $29, 24($29)		/* stack_end */
 	jal __libc_start_main
-
 hlt:	b hlt			/* Crash if somehow it does return.  */
 
 /* Define a symbol for the first piece of initialized data.  */