Hey Pierre,

> I am worried about the "collect2" options. It has:
>  "-dynamic-linker /lib64/ld-linux-x86-64.so.2"
> 
> I think the correct command should have:
> "-dynamic-linker /tools/lib64/ld-linux-x86-64.so.2"
> 
> also, I have that the full path to crt1.o and ctri.o is given, which is not
> true for you.

Yeah, I see. Weird.

I had a feeling the full path for the crt things should be given, but
can't see where I missed specifying it.


> It looks like you screwed up something in the fixup_commands function in gcc:
> I am not sure what the "find... -exec bash -c 'relink_file "$0"' {} \;"
> does... Have you tested it?

Using 'find -exec' just feels cleaner to me than using the raw output of
'find' as the iterands in a for-loop.

I did test it. In particular, the ".orig" files appear as expected, which
they wouldn't if find wasn't correctly execing relink_files. Furthermore,
if I modify relink_file to say,

~~~
relink_file() {
    local f="$@"
    echo "$f"
}
~~~~

then the 'find -exec' stuff from fixup outputs:

gcc/config/i386/sysv4.h
gcc/config/rs6000/sysv4.h
gcc/config/sparc/sysv4.h
gcc/config/ia64/sysv4.h

However, to ensure consistency with the book, I'll try switching to the
usual for-loop as it is written in Ch 5.5 and I'll see if it changes the
test results.


> You'll need an initramfs for booting the LFS system.

Thanks, understood. I want to use LFS as the main OS on one of my machines.
If I was using something like Gentoo instead, I'd have to make an initramfs
from scratch anyway, since genkernel sucks :)


Thanks for your time!


~ Tim
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to