Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Setting up of GP in static, non-PIC version of glibc?
@ 2002-02-25 15:16 Hartvig Ekner
  2002-02-25 16:34 ` Ralf Baechle
  0 siblings, 1 reply; 14+ messages in thread
From: Hartvig Ekner @ 2002-02-25 15:16 UTC (permalink / raw)
  To: linux-mips

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-02-27 18:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-25 15:16 Setting up of GP in static, non-PIC version of glibc? Hartvig Ekner
2002-02-25 16:34 ` Ralf Baechle
2002-02-25 18:31   ` Johannes Stezenbach
2002-02-25 18:39     ` Ralf Baechle
2002-02-25 19:21       ` Hartvig Ekner
2002-02-25 19:21         ` Hartvig Ekner
2002-02-25 20:23         ` Ralf Baechle
2002-02-25 19:32       ` Johannes Stezenbach
2002-02-25 20:39         ` Ralf Baechle
2002-02-26  5:10   ` Jay Carlson
2002-02-26 11:55     ` Ralf Baechle
2002-02-26 14:55       ` Jay Carlson
2002-02-26 17:22         ` Ralf Baechle
2002-02-27 17:56           ` Hartvig Ekner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox