Setting up of GP in static, non-PIC version of glibc?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux