0.3 textrel

Robert Connolly robert at linuxfromscratch.org
Sat Dec 22 12:34:37 PST 2007


I think I have a fix. The bug is in the gcc-fpie patch. Using -fpic on the 
command line would not disable -fPIE, and some libraries, like the pic 
version of libiberty, end up with text relocation's. From what I see this 
only affected libbfd and libproc. New patch is here:
http://www.linuxfromscratch.org/~robert/new/gcc-4.1.2-fpie-20071223.patch

Changes were made to the cc1_options spec. I still want to test it with 
uClibc.

robert

On Tuesday December 18 2007 12:38:19 pm Jaap Struyk wrote:
> Hello,
>
> Giving up my 64bit and went for 0.3, only after the build I checked for
> textrel and found that libbfd got it, so I fired up the lfs-live-cd and
> build the svn-hlfs with jhalfs and got even worse result:
>
> cat > /usr/libexec/grep_lib_for_textrel.sh << "EOF"
> for i in $1/*.so; do
>     readelf -d $i 2>/dev/null | sed -e "s,^,$i: ," | grep TEXTREL
> done
> EOF
>
> /usr/libexec/grep_lib_for_textrel.sh /lib
> /lib/libproc-3.2.7.so:  0x00000016 (TEXTREL)                    0x0
> root:/usr/src/linux-2.6.23.11# /usr/libexec/grep_lib_for_textrel.sh
> /usr/lib /usr/lib/libbfd-2.17.so:  0x00000016 (TEXTREL)                   
> 0x0 /usr/lib/libbfd.so:  0x00000016 (TEXTREL)                    0x0
> --
> Groetjes Japie


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/hlfs-dev/attachments/20071222/1b13d936/attachment.sig>


More information about the hlfs-dev mailing list