On Fri, 2006-08-18 at 17:24 -0700, Dan Nicholson wrote:
> On 8/18/06, Scott Castaline <[EMAIL PROTECTED]> wrote:
> > On Fri, 2006-08-18 at 15:37 -0700, Dan Nicholson wrote:
> > >
> > > $ readelf -l /tools/bin/gcc | grep interpreter
> > >
> > > If the output says /lib/ld-linux.so.2, then you're in trouble because
> > > that dynamic linker doesn't exist yet inside the chroot. It should be
> > > /tools/ld-linux.so.2. What do you get?
> >
> > It does indicate /lib/ld-linux.so.2...
> >
> > Is there a quick fix that I can do or do I need to start all over again.
> > I do remember having trouble with making the symbolic link, but
> > eventually I thought I got it to work.
> 
> Not really a quick fix. That location is hard-coded into the binaries,
> so it they have to be rebuilt or they won't work inside the chroot.
> 
> The cleanest way would be to start over. But, you can save yourself a
> little time (don't have to wait through a gcc bootstrap again).
> 
> Leave the chroot. Go back to Ch. 5.7 in the book, Adjusting the
> Toolchain. Redo the part about creating the GCC specfile very
> carefully. Then go to the bottom of the page and do the sanity check.
> Don't move on if it doesn't pass.
> 
> Then you have to redo the rest of Ch. 5 because all of these binaries
> may need to be rebuilt to know about the new dynamic linker you want
> to use.
> 
> Good luck.
> 
> --
> Dan

I'm not sure but I think I found it in
$LFS/tools/lib/gcc/i686-pc-linux-gnu/4.0.3

On viewing it I found this:

*dynamic_linker:
/tools/lib/ld-linux.so.2

This is just before a section called *Link_command: towards the end. As
I'm using the LiveCD 6.2, I have to reboot from CD to get back or boot
from hard drive to get here so, I anxiously wait for an answer.

TIA
-- 
Scott Castaline aka Bad2theBone

Hey! I was born crazy, what's your excuse?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to