| To: | linux-mips@oss.sgi.com |
|---|---|
| Subject: | Setting up of GP in static, non-PIC version of glibc? |
| From: | Hartvig Ekner <hartvige@mips.com> |
| Date: | Mon, 25 Feb 2002 16:16:20 +0100 (MET) |
| Sender: | owner-linux-mips@oss.sgi.com |
I compiled a static, non-PIC version of glibc (from H.J's miniport SRPM)
to allow testing of MIPS16[e] apps.
One of the things that did not work, is that nobody sets up GP correctly
in this case.
Modifying "/usr/src/redhat/BUILD/glibc-2.2.4/sysdeps/mips/elf/start.S" to
setup GP:
.text
.globl ENTRY_POINT
.type ENTRY_POINT,@function
ENTRY_POINT:
#ifdef __PIC__
SET_GP
#else
la $28, _gp
#endif
Makes things work (this code ends in crt1.o). Is this the right place to
fix it?
/Hartvig
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Problems compiling . soft-float, Ralf Baechle |
|---|---|
| Next by Date: | Re: Setting up of GP in static, non-PIC version of glibc?, Ralf Baechle |
| Previous by Thread: | Problems compiling . soft-float, Carlo Agostini |
| Next by Thread: | Re: Setting up of GP in static, non-PIC version of glibc?, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |