source: BOOK/final-system/mips64/adjusting.xml@ 5afe4f3

systemd
Last change on this file since 5afe4f3 was cc14b18, checked in by William Harrington <kb0iic@…>, 9 years ago

Add int to main since GCC 5 returns defaults to int [-Wimplicit-int]. Suppress the warning.

  • Property mode set to 100644
File size: 3.1 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-adjusting">
9 <?dbhtml filename="adjusting.html"?>
10
11 <title>Adjusting the Toolchain</title>
12
[dabbced]13 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3c35168]14 href="../ppc/adjusting.xml"
[3f8be484]15 xpointer="xpointer(//*[@os='a'])"/>
16
17<screen os="c"><userinput>gcc -dumpspecs | \
[4a65eaf]18perl -p -e 's@/tools/lib/ld@/lib/ld@g;' \
[3f8be484]19 -e 's@/tools/lib32/ld@/lib32/ld@g;' \
20 -e 's@/tools/lib64/ld@/lib64/ld@g;' \
[1b274255]21 -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' &gt; \
[1a498b5]22 $(dirname $(gcc --print-libgcc-file-name))/specs</userinput></screen>
[3f8be484]23
[dabbced]24 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3c35168]25 href="../ppc/adjusting.xml"
[3f8be484]26 xpointer="xpointer(//*[@os='d'])"/>
27
28 <caution>
29
[dabbced]30 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3c35168]31 href="../ppc/adjusting.xml"
[3f8be484]32 xpointer="xpointer(//*[@os='f'])"/>
33
[dabbced]34 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[4a65eaf]35 href="../multilib/adjusting.xml"
36 xpointer="xpointer(//*[@os='m2'])"/>
[3f8be484]37
[dabbced]38 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[4a65eaf]39 href="../multilib/adjusting.xml"
40 xpointer="xpointer(//*[@os='m3'])"/>
[3f8be484]41
[dabbced]42 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3c35168]43 href="../ppc/adjusting.xml"
[3f8be484]44 xpointer="xpointer(//*[@os='h'])"/>
45
[dabbced]46 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3c35168]47 href="../ppc/adjusting.xml"
[3f8be484]48 xpointer="xpointer(//*[@os='i'])"/>
49
50 <para>For N32 ABI:</para>
51
[cc14b18]52<screen><userinput>echo 'int main(){}' &gt; dummy.c
[0c2e5d7]53gcc ${BUILDN32} dummy.c
[3f8be484]54readelf -l a.out | grep ': /lib'</userinput></screen>
55
[dabbced]56 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3c35168]57 href="../ppc/adjusting.xml"
[3f8be484]58 xpointer="xpointer(//*[@os='h'])"/>
59
60<screen><computeroutput>[Requesting program interpreter: /lib32/ld.so.1]</computeroutput></screen>
61
[dabbced]62 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[4a65eaf]63 href="../multilib/adjusting.xml"
64 xpointer="xpointer(//*[@os='m4'])"/>
[3f8be484]65
[dabbced]66 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[4a65eaf]67 href="../multilib/adjusting.xml"
68 xpointer="xpointer(//*[@os='m5'])"/>
[3f8be484]69
[dabbced]70 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3c35168]71 href="../ppc/adjusting.xml"
[3f8be484]72 xpointer="xpointer(//*[@os='h'])"/>
73
74<screen><computeroutput>[Requesting program interpreter: /lib64/ld.so.1]</computeroutput></screen>
75
76 <para>Note that <filename class="directory">/lib</filename>,
77 <filename class="directory">/lib32</filename> or
78 <filename class="directory">/lib64</filename> is now the prefix
79 of our dynamic linker.</para>
80
[dabbced]81 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3c35168]82 href="../ppc/adjusting.xml"
[3f8be484]83 xpointer="xpointer(//*[@os='k'])"/>
84
[dabbced]85 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3c35168]86 href="../ppc/adjusting.xml"
[3f8be484]87 xpointer="xpointer(//*[@os='l'])"/>
88
[dabbced]89 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3c35168]90 href="../ppc/adjusting.xml"
[3f8be484]91 xpointer="xpointer(//*[@os='m'])"/>
92
93 </caution>
94
95</sect1>
Note: See TracBrowser for help on using the repository browser.