Changeset 9d92ca9 for chapter05/glibc.xml
- Timestamp:
- 02/28/2024 04:02:53 PM (6 months ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/glibc.xml
r2469049 r9d92ca9 44 44 <title>Installation of Glibc</title> 45 45 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 48 47 operation of the dynamic library loader:</para> 49 48 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>&1 | grep nan=2008 &>/dev/null; then 50 ln -sfv ../lib/ld-linux-mipsn8.so.1 $LFS/lib64 51 else 52 ln -sfv ../lib/ld.so.1 $LFS/lib64 53 fi</userinput></screen> 57 54 58 55 <note> … … 207 204 208 205 <screen><userinput>echo 'int main(){}' | $LFS_TGT-gcc -xc - 209 readelf -l a.out | grep ld-linux</userinput></screen>206 readelf -l a.out | grep /ld</userinput></screen> 210 207 211 208 <para>If everything is working correctly, there should be no errors, 212 209 and the output of the last command will be of the form:</para> 213 210 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> 218 216 219 217 <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.