source: final-system/x86_64/adjusting.xml@ 48f8316

Last change on this file since 48f8316 was bf8c11f, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 2.7 KB
RevLine 
[bf8c11f]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
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
13 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
14 href="../x86/adjusting.xml"
15 xpointer="xpointer(//*[@os='a'])"/>
16
17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
18 href="../x86/adjusting.xml"
19 xpointer="xpointer(//*[@os='b'])"/>
20
21<screen os="c"><userinput>gcc -dumpspecs | \
22perl -pi -e 's@/tools/lib/ld@/lib/ld@g;' \
23 -e 's@/tools/lib64/ld@/lib64/ld@g;' \
24 -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' > \
25 `dirname $(gcc --print-libgcc-file-name)`/specs</userinput></screen>
26
27 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
28 href="../x86/adjusting.xml"
29 xpointer="xpointer(//*[@os='d'])"/>
30
31 <para>Note that <filename class="directory">/lib</filename> or
32 <filename class="directory">/lib64</filename> is now the prefix
33 of our dynamic linker.</para>
34
35 <caution>
36
37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38 href="../x86/adjusting.xml"
39 xpointer="xpointer(//*[@os='f'])"/>
40
41 <para>For 32 bit ABI:</para>
42
43<screen><userinput>echo 'main(){}' &gt; dummy.c
44cc ${BUILD32} dummy.c
45readelf -l a.out | grep ': /lib'</userinput></screen>
46
47 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
48 href="../x86/adjusting.xml"
49 xpointer="xpointer(//*[@os='h'])"/>
50
51 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
52 href="../x86/adjusting.xml"
53 xpointer="xpointer(//*[@os='i'])"/>
54
55 <para>For 64 bit ABI:</para>
56
57<screen><userinput>echo 'main(){}' &gt; dummy.c
58cc ${BUILD64} dummy.c
59readelf -l a.out | grep ': /lib'</userinput></screen>
60
61 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
62 href="../x86/adjusting.xml"
63 xpointer="xpointer(//*[@os='h'])"/>
64
65<screen><computeroutput>[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]</computeroutput></screen>
66
67 <para>Note that <filename class="directory">/lib</filename> or
68 <filename class="directory">/lib64</filename> is now the prefix
69 of our dynamic linker.</para>
70
71 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
72 href="../x86/adjusting.xml"
73 xpointer="xpointer(//*[@os='k'])"/>
74
75 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
76 href="../x86/adjusting.xml"
77 xpointer="xpointer(//*[@os='l'])"/>
78
79 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
80 href="../x86/adjusting.xml"
81 xpointer="xpointer(//*[@os='m'])"/>
82
83 </caution>
84
85</sect1>
Note: See TracBrowser for help on using the repository browser.