Changeset 9d92ca9 for chapter05


Ignore:
Timestamp:
02/28/2024 04:02:53 PM (5 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/mips64el
Children:
057e32dc
Parents:
2469049
git-author:
Xi Ruoyao <xry111@…> (01/03/2024 05:44:02 AM)
git-committer:
Xi Ruoyao <xry111@…> (02/28/2024 04:02:53 PM)
Message:

mips64el: glibc: adapt symlink for ELF loader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/glibc.xml

    r2469049 r9d92ca9  
    4444    <title>Installation of Glibc</title>
    4545
    46     <para>First, create a symbolic link for LSB compliance. Additionally,
    47     for x86_64, create a compatibility symbolic link required for proper
     46    <para>Create a compatibility symbolic link required for proper
    4847    operation of the dynamic library loader:</para>
    4948
    50 <screen><userinput remap="pre">case $(uname -m) in
    51     i?86)   ln -sfv ld-linux.so.2 $LFS/lib/ld-lsb.so.3
    52     ;;
    53     x86_64) ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64
    54             ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64/ld-lsb-x86-64.so.3
    55     ;;
    56 esac</userinput></screen>
     49<screen><userinput remap="pre">if $LFS_TGT-gcc -v 2>&amp;1 | grep nan=2008 &amp;>/dev/null; then
     50  ln -sfv ../lib/ld-linux-mipsn8.so.1 $LFS/lib64
     51else
     52  ln -sfv ../lib/ld.so.1 $LFS/lib64
     53fi</userinput></screen>
    5754
    5855    <note>
     
    207204
    208205<screen><userinput>echo 'int main(){}' | $LFS_TGT-gcc -xc -
    209 readelf -l a.out | grep ld-linux</userinput></screen>
     206readelf -l a.out | grep /ld</userinput></screen>
    210207
    211208      <para>If everything is working correctly, there should be no errors,
    212209      and the output of the last command will be of the form:</para>
    213210
    214 <screen><computeroutput>[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]</computeroutput></screen>
    215 
    216       <para>Note that for 32-bit machines, the interpreter name will be
    217       <filename>/lib/ld-linux.so.2</filename>.</para>
     211<screen><computeroutput>[Requesting program interpreter: /lib64/ld.so.1</computeroutput></screen>
     212
     213      <para>Note that if <parameter>--with-nan=2008</parameter> is used for
     214      GCC, the interpreter name will be
     215      <filename>/lib64/ld-linux-mipsn8.so.1</filename>.</para>
    218216
    219217      <para>If the output is not as shown above, or there is no output at all,
Note: See TracChangeset for help on using the changeset viewer.