<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV></DIV>
<DIV>Joe Ciccone wrote:</DIV>
<DIV> </DIV>
<DIV>> This is most likely because your prog has the wrong path of <A href="http://ld.so/" target=_blank>ld.so</A><BR>> embedded in it. If you get a target binary, run this command on it and<BR>> compare it to your shared hello world binary.<BR><BR>Joe,</DIV>
<DIV> </DIV>
<DIV>Right again.  The binary was expecting /tools/lib/ld.so.1, as expected in CLFS cross compilation environment.  The target has /opt/ppc/powerpc-linux/lib/ld.so.1.  To see if I could get the shared library loader resolved, I added a link, then set LD_LIBRARY_PATH to pick up libc.so.6, and copied libgcc_s.so.1 from cross-tools on my CLFS machine, then joy! The shared version of hello world actually ran.</DIV>
<DIV> </DIV>
<DIV> I suppose I could go back and reconfigure binutils --with-lib-path= set to the target library path.  I guess that sets the ld.so path that linker encodes in binaries.</DIV>
<DIV> </DIV>
<DIV>So this is all forward progress.   My next step is to attempt to build some packages with powerpc-gcc, which seems daunting in that there are several interdependent packages that need to be built and installed to work together: passwd, userlib, pam, and on and on.  I plan on consulting CLFS for hints as to how to set a build environment which will use the cross compiler, linker, librarian, etc.</DIV>
<DIV> </DIV>
<DIV>So thank you, you provided just the hint I needed to get in and find what was wrong.</DIV>
<DIV> </DIV>
<DIV>Regards, Anthony Drake</DIV>
<DIV> </DIV></div></body></html>