source: BOOK/final-system/multilib/adjusting.xml@ c5c09e6

sysvinit
Last change on this file since c5c09e6 was 9a486da, 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: 2.5 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"
[4a65eaf]14 href="../common/adjusting.xml"
[3f8be484]15 xpointer="xpointer(//*[@os='a'])"/>
16
[0ed34f4]17<screen os="c"><userinput>gcc -dumpspecs | \
18perl -p -e 's@/tools/lib/ld@/lib/ld@g;' \
19 -e 's@/tools/lib64/ld@/lib64/ld@g;' \
[1b274255]20 -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' &gt; \
[1a498b5]21 $(dirname $(gcc --print-libgcc-file-name))/specs</userinput></screen>
[3f8be484]22
[dabbced]23 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[4a65eaf]24 href="../common/adjusting.xml"
[3f8be484]25 xpointer="xpointer(//*[@os='d'])"/>
26
27 <caution>
28
[dabbced]29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[4a65eaf]30 href="../common/adjusting.xml"
[3f8be484]31 xpointer="xpointer(//*[@os='f'])"/>
32
[0ed34f4]33 <para os="m2">For 32 bit ABI:</para>
[3f8be484]34
[9a486da]35<screen os="m3"><userinput>echo 'int main(){}' &gt; dummy.c
[0c2e5d7]36gcc ${BUILD32} dummy.c
[0ed34f4]37readelf -l a.out | grep ': /lib'</userinput></screen>
[3f8be484]38
[dabbced]39 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[4a65eaf]40 href="../common/adjusting.xml"
[3f8be484]41 xpointer="xpointer(//*[@os='h'])"/>
42
[dabbced]43 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[4a65eaf]44 href="../common/adjusting.xml"
[3f8be484]45 xpointer="xpointer(//*[@os='i'])"/>
46
[0ed34f4]47 <para os="m4">For 64 bit ABI:</para>
[3f8be484]48
[0ed34f4]49<screen os="m5"><userinput>echo 'main(){}' &gt; dummy.c
[0c2e5d7]50gcc ${BUILD64} dummy.c
[0ed34f4]51readelf -l a.out | grep ': /lib'</userinput></screen>
[3f8be484]52
[dabbced]53 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[4a65eaf]54 href="../common/adjusting.xml"
[3f8be484]55 xpointer="xpointer(//*[@os='h'])"/>
56
[0c6e1ea5]57 <!-- specific to sparc64 -->
58<screen os="i"><computeroutput>[Requesting program interpreter: /lib64/ld-linux.so.2]</computeroutput></screen>
[3f8be484]59
[0ed34f4]60 <para os="m7">Note that <filename class="directory">/lib</filename> or
61 <filename class="directory">/lib64</filename> is now the prefix
62 of our dynamic linker.</para>
[3f8be484]63
[dabbced]64 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[4a65eaf]65 href="../common/adjusting.xml"
[3f8be484]66 xpointer="xpointer(//*[@os='k'])"/>
67
[dabbced]68 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[4a65eaf]69 href="../common/adjusting.xml"
[3f8be484]70 xpointer="xpointer(//*[@os='l'])"/>
71
[dabbced]72 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[4a65eaf]73 href="../common/adjusting.xml"
[3f8be484]74 xpointer="xpointer(//*[@os='m'])"/>
75
76 </caution>
77
78</sect1>
Note: See TracBrowser for help on using the repository browser.