mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-08-07 12:05:52 +01:00
mips64el: glibc: adapt symlink for ELF loader
This commit is contained in:
parent
24690499ae
commit
9d92ca9e8a
@ -43,17 +43,14 @@
|
||||
<sect2 role="installation">
|
||||
<title>Installation of Glibc</title>
|
||||
|
||||
<para>First, create a symbolic link for LSB compliance. Additionally,
|
||||
for x86_64, create a compatibility symbolic link required for proper
|
||||
<para>Create a compatibility symbolic link required for proper
|
||||
operation of the dynamic library loader:</para>
|
||||
|
||||
<screen><userinput remap="pre">case $(uname -m) in
|
||||
i?86) ln -sfv ld-linux.so.2 $LFS/lib/ld-lsb.so.3
|
||||
;;
|
||||
x86_64) ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64
|
||||
ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64/ld-lsb-x86-64.so.3
|
||||
;;
|
||||
esac</userinput></screen>
|
||||
<screen><userinput remap="pre">if $LFS_TGT-gcc -v 2>&1 | grep nan=2008 &>/dev/null; then
|
||||
ln -sfv ../lib/ld-linux-mipsn8.so.1 $LFS/lib64
|
||||
else
|
||||
ln -sfv ../lib/ld.so.1 $LFS/lib64
|
||||
fi</userinput></screen>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
@ -206,15 +203,16 @@ cd build</userinput></screen>
|
||||
expected. To perform a sanity check, run the following commands:</para>
|
||||
|
||||
<screen><userinput>echo 'int main(){}' | $LFS_TGT-gcc -xc -
|
||||
readelf -l a.out | grep ld-linux</userinput></screen>
|
||||
readelf -l a.out | grep /ld</userinput></screen>
|
||||
|
||||
<para>If everything is working correctly, there should be no errors,
|
||||
and the output of the last command will be of the form:</para>
|
||||
|
||||
<screen><computeroutput>[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]</computeroutput></screen>
|
||||
<screen><computeroutput>[Requesting program interpreter: /lib64/ld.so.1</computeroutput></screen>
|
||||
|
||||
<para>Note that for 32-bit machines, the interpreter name will be
|
||||
<filename>/lib/ld-linux.so.2</filename>.</para>
|
||||
<para>Note that if <parameter>--with-nan=2008</parameter> is used for
|
||||
GCC, the interpreter name will be
|
||||
<filename>/lib64/ld-linux-mipsn8.so.1</filename>.</para>
|
||||
|
||||
<para>If the output is not as shown above, or there is no output at all,
|
||||
then something is wrong. Investigate and retrace the steps to find out
|
||||
|
Loading…
Reference in New Issue
Block a user