[Aboriginal] Aboriginal Linux root filesystem and ldd

Rob Landley rob at landley.net
Thu Sep 15 10:46:15 PDT 2011


On 09/14/2011 10:12 AM, Tony Tonchev wrote:
> No rush Rob, Just following up.

I fixed the build so the cross compiler has the ldd for the right
architecture, and it is listing the libraries, it's just the UI is horrible.

What specific problems are you having with the output?  I'm getting this:

$ x86_64-ldd /bin/ls
ldd: can't open cache '/etc/ld-uClibc.so.cache'
checking sub-depends for '/lib64/librt.so.1'
checking sub-depends for '/lib64/libselinux.so.1'
checking sub-depends for '/lib64/libacl.so.1'
checking sub-depends for '/lib64/libc.so.6'
checking sub-depends for '/lib64/libpthread.so.0'
checking sub-depends for '/lib64/libdl.so.2'
	librt.so.1 => /lib64/librt.so.1 (0x00000000)
	libselinux.so.1 => /lib64/libselinux.so.1 (0x00000000)
	libacl.so.1 => /lib64/libacl.so.1 (0x00000000)
	libc.so.6 => /lib64/libc.so.6 (0x00000000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00000000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00000000)
	/lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00000000)
	/lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00000000)

Which is wrong because:

1) Don't complain about being unable to open the cache file.
2) Don't spam the console about checking sub-depends.
3) All the load addresses are 0x00000000.

The first two are trivial to fix (remove some printf), the third can
fish the data out of /proc/self/maps.

Could you give me a bit of direction about what to fix, or just
"everything"?  (Which bits are important to you?  I dunno what you're
trying to do...)

Huh, reading the current ldd code I'm tempted to just write a smaller
and simpler one...

> Meanwhile, I'm fighting with distcc. Doesn't seem to like the
> cross-compiler and bombs with a 110. Other than that I see no showstoppers.

Huh.  It's working fine here.  (The dev-environment.sh script should set
it up correctly if the cross compiler's "bin" subdirectory is in your
$PATH.  This isn't working?)

> Tony.

Rob



More information about the Aboriginal mailing list