123456789101112131415161718192021222324252627282930313233343536373839 |
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
- <!ENTITY % general-entities SYSTEM "../general.ent">
- %general-entities;
- ]>
- <sect1 id="ch-system-readjusting">
- <title>Rea-djusting the Toolchain</title>
- <?dbhtml filename="readjusting.html"?>
- <para>Install the adjusted linker by running the following from within the
- <filename class="directory">binutils-build</filename> directory:</para>
- <screen><userinput>make -C ld INSTALL=/tools/bin/install install</userinput></screen>
- <para>Amend the GCC specs file:</para>
- <!-- Ampersands are needed to allow cut and paste -->
- <screen><userinput>perl -pi -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g;' \
- -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/@g;' \
- `gcc --print-file specs`</userinput></screen>
- <caution><para>Perform a simple sanity check:</para>
- <screen><userinput>echo 'main(){}' > dummy.c
- cc dummy.c
- readelf -l a.out | grep ': /lib'</userinput></screen>
- <para>The output of the last command will be:</para>
- <screen><computeroutput>[Requesting program interpreter: /lib/ld-linux.so.2]</computeroutput></screen>
- <para>Once you are satisfied that all is well, clean up the test files:</para>
- <screen><userinput>rm dummy.c a.out</userinput></screen>
- </caution>
- </sect1>
|