bug-glibc
[Top][All Lists]
Advanced

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

Re: [linux-sh:02897] Re: "make tests" fails with "libc.so: text relocati


From: Daniel Jacobowitz
Subject: Re: [linux-sh:02897] Re: "make tests" fails with "libc.so: text relocations used" in glibc-2.3.2 for sh4
Date: Mon, 28 Jul 2003 20:47:43 -0400
User-agent: Mutt/1.5.1i

On Tue, Jul 29, 2003 at 08:53:39AM +0900, kaz Kojima wrote:
> Dan Kegel <address@hidden> wrote:
> > I'm cross-building glibc for sh4 using gcc-3.3 and binutils-2.13.90.0.18.
> > My scripts are online at http://kegel.com/crosstool
> > and are partly working with glibc-2.2.5 on sh4, with a few glibc
> > test execution failures (see 
> > http://www.m17n.org/linux-sh/ml/linux-sh/2003-07/msg00050.html).
> > 
> > Now I'm trying glibc-2.3.2, but "make tests" fails at build time with error
> > make[2]: *** [/gcc-3.3-glibc-2.3.2/build-glibc/elf/check-textrel.out] Error 
> > 1
> > 
> > Looking inside check-textrel.out, I see the errors
> > /gcc-3.3-glibc-2.3.2/build-glibc/libc.so: text relocations used
> [snip]
> > FWIW, a similar problem was reported on ppc:
> > http://sources.redhat.com/ml/binutils/2003-02/msg00054.html
> > and fixed by a patch to glibc:
> > http://sources.redhat.com/ml/binutils/2003-02/msg00249.html
> > 
> > Do we need a similar fix for sh4?  Or am I perhaps using the wrong version 
> > of binutils?
> 
> No and no, unfortunately.
> If you looked the output of readelf -a libc.so closely, you could
> find that the only text relocation occurs for __fpscr_values in
> __udivsi3_i4 which is a libgcc function. So a fix would be to
> write a PIC version of __udivsi3_i4. But it seems a trade-off
> between slight inefficiency of the integral division and one text
> relocation.

For the record, the text relocation can cause problems for "prelink".
It hasn't yet, though.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]