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

Erik Andersen andersen at codepoet.org
Sun Nov 3 15:16:20 UTC 2002


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.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list