mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-26 20:51:11 +00:00
Added initialization of GP (to _gp) if compiled non-PIC.
This commit is contained in:
parent
ceb7d0bbbe
commit
b5f72d715e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user