mips64el: gcc: update sanity check output

This commit is contained in:
Xi Ruoyao 2024-01-03 13:46:20 +08:00
parent 60dbbd1f44
commit 3577b41b3e
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -235,7 +235,7 @@ readelf -l a.out | grep ': /lib'</userinput></screen>
and the output of the last command will be (allowing for and the output of the last command will be (allowing for
platform-specific differences in the dynamic linker name):</para> platform-specific differences in the dynamic linker name):</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>Now make sure that we're set up to use the correct start files:</para> <para>Now make sure that we're set up to use the correct start files:</para>
@ -243,9 +243,9 @@ readelf -l a.out | grep ': /lib'</userinput></screen>
<para>The output of the last command should be:</para> <para>The output of the last command should be:</para>
<screen><computeroutput>/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/Scrt1.o succeeded <screen><computeroutput>/usr/lib/gcc/mips64el-unknown-linux-gnuabi64/&gcc-version;/../../../../lib/Scrt1.o succeeded
/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crti.o succeeded /usr/lib/gcc/mips64el-unknown-linux-gnuabi64/&gcc-version;/../../../../lib/crti.o succeeded
/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crtn.o succeeded</computeroutput></screen> /usr/lib/gcc/mips64el-unknown-linux-gnuabi64/&gcc-version;/../../../../lib/crtn.o succeeded</computeroutput></screen>
<para>Depending on your machine architecture, the above may differ slightly. <para>Depending on your machine architecture, the above may differ slightly.
The difference will be the name of the directory The difference will be the name of the directory
@ -262,9 +262,9 @@ readelf -l a.out | grep ': /lib'</userinput></screen>
<para>This command should return the following output:</para> <para>This command should return the following output:</para>
<screen><computeroutput>#include &lt;...&gt; search starts here: <screen><computeroutput>#include &lt;...&gt; search starts here:
/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include /usr/lib/gcc/mips64el-unknown-linux-gnuabi64/&gcc-version;/include
/usr/local/include /usr/local/include
/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include-fixed /usr/lib/gcc/mips64el-unknown-linux-gnuabi64/&gcc-version;/include-fixed
/usr/include</computeroutput></screen> /usr/include</computeroutput></screen>
<para>Again, the directory named after your target triplet may be <para>Again, the directory named after your target triplet may be
@ -277,15 +277,15 @@ readelf -l a.out | grep ': /lib'</userinput></screen>
<para>References to paths that have components with '-linux-gnu' should <para>References to paths that have components with '-linux-gnu' should
be ignored, but otherwise the output of the last command should be:</para> be ignored, but otherwise the output of the last command should be:</para>
<screen><computeroutput>SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64") <screen><computeroutput>SEARCH_DIR("/usr/mips64el-unknown-linux-gnuabi64/lib64")
SEARCH_DIR("/usr/local/lib64") SEARCH_DIR("/usr/local/lib64")
SEARCH_DIR("/lib64") SEARCH_DIR("/lib64")
SEARCH_DIR("/usr/lib64") SEARCH_DIR("/usr/lib64")
SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib") SEARCH_DIR("/usr/mips64el-unknown-linux-gnuabi64/lib")
SEARCH_DIR("/usr/local/lib") SEARCH_DIR("/usr/local/lib")
SEARCH_DIR("/lib") SEARCH_DIR("/lib")
SEARCH_DIR("/usr/lib");</computeroutput></screen> SEARCH_DIR("/usr/lib");</computeroutput></screen>
<!--
<para>A 32-bit system may use a few other directories. For example, here <para>A 32-bit system may use a few other directories. For example, here
is the output from an i686 machine:</para> is the output from an i686 machine:</para>
@ -297,7 +297,7 @@ SEARCH_DIR("/usr/i686-pc-linux-gnu/lib")
SEARCH_DIR("/usr/local/lib") SEARCH_DIR("/usr/local/lib")
SEARCH_DIR("/lib") SEARCH_DIR("/lib")
SEARCH_DIR("/usr/lib");</computeroutput></screen> SEARCH_DIR("/usr/lib");</computeroutput></screen>
-->
<para>Next make sure that we're using the correct libc:</para> <para>Next make sure that we're using the correct libc:</para>
<screen><userinput>grep "/lib.*/libc.so.6 " dummy.log</userinput></screen> <screen><userinput>grep "/lib.*/libc.so.6 " dummy.log</userinput></screen>
@ -313,7 +313,7 @@ SEARCH_DIR("/usr/lib");</computeroutput></screen>
<para>The output of the last command should be (allowing for <para>The output of the last command should be (allowing for
platform-specific differences in dynamic linker name):</para> platform-specific differences in dynamic linker name):</para>
<screen><computeroutput>found ld-linux-x86-64.so.2 at /usr/lib/ld-linux-x86-64.so.2</computeroutput></screen> <screen><computeroutput>found ld.so.1 at /usr/lib/ld.so.1</computeroutput></screen>
<para>If the output does not appear as shown above or is not received <para>If the output does not appear as shown above or is not received
at all, then something is seriously wrong. Investigate and retrace the at all, then something is seriously wrong. Investigate and retrace the