aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2002-03-02 13:14:40 +0000
committerAndreas Jaeger <aj@suse.de>2002-03-02 13:14:40 +0000
commitb5f72d715efd5715986fdce112be4bf59ca4de2f (patch)
tree336f1c5e9ca565b14f47e755056e4c5b92974824 /sysdeps
parentceb7d0bbbe3741d7bfdf1d8b30e1979e9aacc0c7 (diff)
downloadglibc-b5f72d715efd5715986fdce112be4bf59ca4de2f.tar
glibc-b5f72d715efd5715986fdce112be4bf59ca4de2f.tar.gz
glibc-b5f72d715efd5715986fdce112be4bf59ca4de2f.tar.bz2
glibc-b5f72d715efd5715986fdce112be4bf59ca4de2f.zip
Added initialization of GP (to _gp) if compiled non-PIC.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mips/elf/start.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/mips/elf/start.S b/sysdeps/mips/elf/start.S
index e129930505..01908e28db 100644
--- a/sysdeps/mips/elf/start.S
+++ b/sysdeps/mips/elf/start.S
@@ -1,5 +1,5 @@
/* Startup code compliant to the ELF Mips ABI.
- Copyright (C) 1995, 1997, 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1997, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -71,6 +71,8 @@
ENTRY_POINT:
#ifdef __PIC__
SET_GP
+#else
+ la $28, _gp /* Setup GP correctly if we're non-PIC. */
#endif
move $31, $0