From b5f72d715efd5715986fdce112be4bf59ca4de2f Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 2 Mar 2002 13:14:40 +0000 Subject: [PATCH] Added initialization of GP (to _gp) if compiled non-PIC. --- sysdeps/mips/elf/start.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sysdeps/mips/elf/start.S b/sysdeps/mips/elf/start.S index e129930..01908e2 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 -- 2.7.4