[uClibc][PATCH] Add more relocs to SH ldso

David McCullough davidm at snapgear.com
Mon Nov 4 00:30:33 UTC 2002


Jivin Erik Andersen lays it down ...
> On Thu Oct 31, 2002 at 09:54:48AM +0100, Stefan Allius wrote:
> > On Thursday 31 October 2002 04:05, you wrote:
> > 
> > Hi,
> > 
> > here is an additional patch to the patches from M.R Brown, to get a loader, 
> > which uses only PIC code.
> > 
> > - In resolve.S we load the load the function address from the PLT section.
> > - In ldso added a prototype to fix a compiler warning
> 
> I've applied your changes, but I also combined R_SH_DIR32,
> R_SH_GLOB_DAT, and R_SH_JMP_SLOT into a single case, since the
> code was identical.
> 
> > At the moment, the GCC 3.2 produces buggy code, due to a optimizer bug (for 
> > SH3 big endian). So you must compile with the option -O0 to get running code.
> > My college Eddie C.Dost tries to fix it.
> 
> At the moment, what is the best gcc compiler/patchset for testing
> SH code?  I have not had very much luck so far at finding a solid
> compiler to test uClibc on my Dreamcast system.

We are running 3.0.4 here with binutils-2.11.94 and a bunch of SH patches
off the net using glibc (uClibc works fine also ;-).   Does everything we
need.  2.95 series is not an option :-(

Cheers,
Davidm

-- 
David McCullough:    Ph: +61 7 3435 2815  http://www.SnapGear.com
davidm at snapgear.com  Fx: +61 7 3891 3630  Custom Embedded Solutions + Security



More information about the uClibc mailing list