Ignore:
Timestamp:
08/08/2004 02:11:09 AM (20 years ago)
Author:
Gerard Beekmans <gerard@…>
Branches:
6.0
Children:
5ba3d1d
Parents:
6e41459
Message:

Completed global edits for upcoming 6.0 release

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4000 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/binutils.xml

    r6e41459 ref13657  
    3030<title>Installation of Binutils</title>
    3131
    32 <para>Now is an appropriate time to verify that your pseudo terminals (PTYs) are
    33 working properly inside the chroot environment. We will again quickly check that
    34 everything is set up correctly by performing a simple test:</para>
     32<para>Verify that your the terminals (PTYs) are working properly
     33inside the chroot environment. Check that everything is set up
     34correctly by performing a simple test:</para>
    3535
    3636<screen><userinput>expect -c "spawn ls"</userinput></screen>
    3737
    38 <para>If you receive the message:</para>
     38<para>If the following message shows up, the chroot environment is not
     39set up for proper PTY operation:</para>
    3940
    4041<screen><computeroutput>The system has no more ptys.  Ask your system administrator to create more.</computeroutput></screen>
    4142
    42 <para>Your chroot environment is not set up for proper PTY operation. In this
    43 case there is no point in running the test suites for Binutils and GCC until you
    44 are able to resolve the issue.</para>
    45 
    46 <para>This package is known to behave badly when you have changed its
    47 default optimization flags (including the <parameter>-march</parameter> and <parameter>-mcpu</parameter> options).
    48 Therefore, if you have defined any environment variables that override
    49 default optimizations, such as CFLAGS and CXXFLAGS, we recommend un-setting
    50 or modifying them when building Binutils.</para>
     43<para>The issue needs to be resolved before running the test suites
     44for Binutils and GCC.</para>
     45
     46<para>This package is known to have issues when its default
     47optimization flags (including the <parameter>-march</parameter> and
     48<parameter>-mcpu</parameter> options) are changed. If any environment
     49variables that override default optimizations have been defined, such
     50as <emphasis>CFLAGS</emphasis> and <emphasis>CXXFLAGS</emphasis>,
     51unset or modifying them when building Binutils.</para>
    5152
    5253<para>The Binutils documentation recommends building Binutils outside of the
     
    5657cd ../binutils-build</userinput></screen>
    5758
    58 <para>Now prepare Binutils for compilation:</para>
     59<para>Prepare Binutils for compilation:</para>
    5960
    6061<screen><userinput>../binutils-&binutils-version;/configure --prefix=/usr --enable-shared</userinput></screen>
     
    6465<screen><userinput>make tooldir=/usr</userinput></screen>
    6566
    66 <para>Normally, the <emphasis>tooldir</emphasis> (the directory where the
    67 executables end up) is set to $(exec_prefix)/$(target_alias), which expands
    68 into, for example, <filename class="directory">/usr/i686-pc-linux-gnu</filename>. Since we only
    69 build for our own system, we don't need this target specific directory in
    70 <filename class="directory">/usr</filename>. That setup would be used if the system was used to
    71 cross-compile (for example compiling a package on an Intel machine that
    72 generates code that can be executed on PowerPC machines).</para>
    73 
    74 <important><para>The test suite for Binutils in this section is considered
    75 <emphasis>critical</emphasis>. Our advice is to not skip it under any
     67<para>Normally, the tooldir (the directory where the executables will
     68ultimately be located) is set to <filename
     69class="directory">$(exec_prefix)/$(target_alias)</filename>, which
     70expands into <filename
     71class="directory">/usr/i686-pc-linux-gnu</filename>. Because this is a
     72custom system, this target-specific directory in <filename
     73class="directory">/usr</filename> is not required. This setup would be
     74used if the system was used to cross-compile (for example, compiling a
     75package on an Intel machine that generates code that can be executed
     76on PowerPC machines).</para>
     77
     78<important><para>The test suite for Binutils in this section is
     79considered critical. Do not skip it under any
    7680circumstances.</para></important>
    7781
    7882<para>Test the results:</para>
    7983
    80 <screen><userinput>make -k check</userinput></screen>
    81 
    82 <para>The test suite notes from <xref linkend="ch-tools-binutils-pass2"/> are still
    83 very much appropriate here. Be sure to refer back there should you have any
    84 doubts.</para>
     84<screen><userinput>make check</userinput></screen>
    8585
    8686<para>Install the package:</para>
     
    112112<listitem>
    113113<indexterm zone="ch-system-binutils addr2line"><primary sortas="b-addr2line">addr2line</primary></indexterm>
    114 <para>translates program addresses to file
    115 names and line numbers. Given an address and the name of an executable, it
    116 uses the debugging information in the executable to figure out which source
    117 file and line number are associated with the address.</para>
     114<para>translates program addresses to file names and line numbers.
     115Given an address and the name of an executable, it uses the debugging
     116information in the executable to determine which source file and line
     117number are associated with the address.</para>
    118118</listitem>
    119119</varlistentry>
     
    123123<listitem>
    124124<indexterm zone="ch-system-binutils ar"><primary sortas="b-ar">ar</primary></indexterm>
    125 <para>creates, modifies, and extracts from archives. An archive
    126 is a single file holding a collection of other files in a structure that makes
    127 it possible to retrieve the original individual files (called members of
    128 the archive).</para>
     125<para>creates, modifies, and extracts from archives. An archive is a
     126single file holding a collection of other files in a structure that
     127makes it possible to retrieve the original individual files (called
     128members of the archive).</para>
    129129</listitem>
    130130</varlistentry>
     
    134134<listitem>
    135135<indexterm zone="ch-system-binutils as"><primary sortas="b-as">as</primary></indexterm>
    136 <para>is an assembler. It assembles the output of <command>gcc</command> into object files.</para>
     136<para>an assembler. It assembles the output of gcc into object
     137files.</para>
    137138</listitem>
    138139</varlistentry>
     
    142143<listitem>
    143144<indexterm zone="ch-system-binutils c-filt"><primary sortas="b-c++filt">c++filt</primary></indexterm>
    144 <para>is used by the linker to de-mangle C++ and
    145 Java symbols, to keep overloaded functions from clashing.</para>
     145<para>used by the linker to de-mangle C++ and Java symbols and to keep
     146overloaded functions from clashing.</para>
    146147</listitem>
    147148</varlistentry>
     
    159160<listitem>
    160161<indexterm zone="ch-system-binutils ld"><primary sortas="b-ld">ld</primary></indexterm>
    161 <para>is a linker. It combines a number of object and archive files into a single file,
     162<para>a linker. It combines a number of object and archive files into a single file,
    162163relocating their data and tying up symbol references.</para>
    163164</listitem>
     
    176177<listitem>
    177178<indexterm zone="ch-system-binutils objcopy"><primary sortas="b-objcopy">objcopy</primary></indexterm>
    178 <para>is used to translate one type of object file into another.</para>
     179<para>used to translate one type of object file into another.</para>
    179180</listitem>
    180181</varlistentry>
     
    184185<listitem>
    185186<indexterm zone="ch-system-binutils objdump"><primary sortas="b-objdump">objdump</primary></indexterm>
    186 <para>displays information about the given object file, with options controlling what
    187 particular information to display. The information shown is mostly only useful to
    188 programmers who are working on the compilation tools.</para>
     187<para>displays information about the given object file, with options
     188controlling the particular information to display. The information
     189shown is useful to programmers who are working on the compilation
     190tools.</para>
    189191</listitem>
    190192</varlistentry>
     
    194196<listitem>
    195197<indexterm zone="ch-system-binutils ranlib"><primary sortas="b-ranlib">ranlib</primary></indexterm>
    196 <para>generates an index of the contents of an
    197 archive, and stores it in the archive. The index lists all the symbols defined
    198 by archive members that are relocatable object files.</para>
     198<para>generates an index of the contents of an archive and stores it
     199in the archive. The index lists all of the symbols defined by archive
     200members that are relocatable object files.</para>
    199201</listitem>
    200202</varlistentry>
     
    204206<listitem>
    205207<indexterm zone="ch-system-binutils readelf"><primary sortas="b-readelf">readelf</primary></indexterm>
    206 <para>displays information about elf type binaries.</para>
     208<para>displays information about ELF type binaries.</para>
    207209</listitem>
    208210</varlistentry>
     
    212214<listitem>
    213215<indexterm zone="ch-system-binutils size"><primary sortas="b-size">size</primary></indexterm>
    214 <para>lists the section sizes -- and the grand total -- for the given object files.</para>
     216<para>lists the section sizes and the total size for the given object files.</para>
    215217</listitem>
    216218</varlistentry>
     
    220222<listitem>
    221223<indexterm zone="ch-system-binutils strings"><primary sortas="b-strings">strings</primary></indexterm>
    222 <para>outputs, for each given file, the sequences
    223 of printable characters that are of at least the specified length (defaulting to 4).
    224 For object files it prints, by default, only the strings from the initializing
    225 and loading sections. For other types of files it scans the whole file.</para>
     224<para>outputs, for each given file, the sequences of printable
     225characters that are of at least the specified length (defaulting to
     226four). For object files, it prints, by default, only the strings from
     227the initializing and loading sections. For other types of files, it
     228scans the whole file.</para>
    226229</listitem>
    227230</varlistentry>
     
    239242<listitem>
    240243<indexterm zone="ch-system-binutils libiberty"><primary sortas="c-libiberty">libiberty</primary></indexterm>
    241 <para>contains routines used by various GNU
    242 programs, including getopt, obstack, strerror, strtol and strtoul.</para>
     244<para>contains routines used by various GNU programs, including
     245<command>getopt</command>, <command>obstack</command>,
     246<command>strerror</command>, <command>strtol</command> and
     247<command>strtoul</command>.</para>
    243248</listitem>
    244249</varlistentry>
     
    248253<listitem>
    249254<indexterm zone="ch-system-binutils libbfd"><primary sortas="c-libbfd">libbfd</primary></indexterm>
    250 <para>is the Binary File Descriptor library.</para>
     255<para>the Binary File Descriptor library.</para>
    251256</listitem>
    252257</varlistentry>
     
    256261<listitem>
    257262<indexterm zone="ch-system-binutils libopcodes"><primary sortas="c-libopcodes">libopcodes</primary></indexterm>
    258 <para>is a library for dealing with opcodes.
    259 It is used for building utilities like objdump. Opcodes are the <quote>readable
     263<para>a library for dealing with opcodes.
     264It is used for building utilities like <command>objdump</command>. Opcodes are the <quote>readable
    260265text</quote> versions of instructions for the processor.</para>
    261266</listitem>
     
    266271
    267272</sect1>
     273
Note: See TracChangeset for help on using the changeset viewer.