source: chapter06/binutils.xml@ 7d7ae7e

7.9-systemd
Last change on this file since 7d7ae7e was 7d7ae7e, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Document test suite failures

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

  • Property mode set to 100644
File size: 11.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-binutils" role="wrap">
9 <?dbhtml filename="binutils.html"?>
10
11 <sect1info condition="script">
12 <productname>binutils</productname>
13 <productnumber>&binutils-version;</productnumber>
14 <address>&binutils-url;</address>
15 </sect1info>
16
17 <title>Binutils-&binutils-version;</title>
18
19 <indexterm zone="ch-system-binutils">
20 <primary sortas="a-Binutils">Binutils</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Binutils package contains a linker, an assembler, and other
27 tools for handling object files.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&binutils-ch6-sbu;</seg>
35 <seg>&binutils-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Binutils</title>
43
44 <para>Verify that the PTYs are working properly inside the chroot
45 environment by performing a simple test:</para>
46
47<screen><userinput remap="test">expect -c "spawn ls"</userinput></screen>
48
49 <para>This command should output the following:</para>
50
51<screen><computeroutput>spawn ls</computeroutput></screen>
52
53 <para>If, instead, the output includes the message below, then the environment
54 is not set up for proper PTY operation. This issue needs to be resolved before
55 running the test suites for Binutils and GCC:</para>
56
57<screen><computeroutput>The system has no more ptys.
58Ask your system administrator to create more.</computeroutput></screen>
59
60 <para>Fix a problem identified upstream:</para>
61
62<screen><userinput remap="pre">patch -Np1 -i ../&binutils-upstream-patch;</userinput></screen>
63
64 <para>The Binutils documentation recommends building Binutils
65 in a dedicated build directory:</para>
66
67<screen><userinput remap="pre">mkdir -v build
68cd build</userinput></screen>
69
70 <para>Prepare Binutils for compilation:</para>
71
72<screen><userinput remap="configure">../configure --prefix=/usr \
73 --enable-shared \
74 --disable-werror</userinput></screen>
75
76 <para>Compile the package:</para>
77
78<screen><userinput remap="make">make tooldir=/usr</userinput></screen>
79
80 <variablelist>
81 <title>The meaning of the make parameter:</title>
82
83 <varlistentry>
84 <term><parameter>tooldir=/usr</parameter></term>
85 <listitem>
86 <para>Normally, the tooldir (the directory where the executables will
87 ultimately be located) is set to <filename
88 class="directory">$(exec_prefix)/$(target_alias)</filename>. For
89 example, x86_64 machines would expand that to <filename
90 class="directory">/usr/x86_64-unknown-linux-gnu</filename>. Because this is
91 a custom system, this target-specific directory in <filename
92 class="directory">/usr</filename> is not required. <filename
93 class="directory">$(exec_prefix)/$(target_alias)</filename> would be
94 used if the system was used to cross-compile (for example, compiling a
95 package on an Intel machine that generates code that can be executed
96 on PowerPC machines).</para>
97 </listitem>
98 </varlistentry>
99
100 </variablelist>
101
102 <important>
103 <para>The test suite for Binutils in this section is considered critical.
104 Do not skip it under any circumstances.</para>
105 </important>
106
107 <para>Test the results:</para>
108
109<screen><userinput remap="test">make check</userinput></screen>
110
111 <para> The test 'Link with zlib-gabi compressed debug output' is known to fail.</para>
112
113 <para>Install the package:</para>
114
115<screen><userinput remap="install">make tooldir=/usr install</userinput></screen>
116
117 </sect2>
118
119 <sect2 id="contents-binutils" role="content">
120 <title>Contents of Binutils</title>
121
122 <segmentedlist>
123 <segtitle>Installed programs</segtitle>
124 <segtitle>Installed libraries</segtitle>
125 <segtitle>Installed directory</segtitle>
126
127 <seglistitem>
128 <seg>addr2line, ar, as, c++filt, elfedit, gprof, ld, ld.bfd, nm,
129 objcopy, objdump, ranlib, readelf, size, strings, and strip</seg>
130 <seg>libbfd.{a,so} and libopcodes.{a,so}</seg>
131 <seg>/usr/lib/ldscripts</seg>
132 </seglistitem>
133 </segmentedlist>
134
135 <variablelist>
136 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
137 <?dbfo list-presentation="list"?>
138 <?dbhtml list-presentation="table"?>
139
140 <varlistentry id="addr2line">
141 <term><command>addr2line</command></term>
142 <listitem>
143 <para>Translates program addresses to file names and line numbers;
144 given an address and the name of an executable, it uses the debugging
145 information in the executable to determine which source file and line
146 number are associated with the address</para>
147 <indexterm zone="ch-system-binutils addr2line">
148 <primary sortas="b-addr2line">addr2line</primary>
149 </indexterm>
150 </listitem>
151 </varlistentry>
152
153 <varlistentry id="ar">
154 <term><command>ar</command></term>
155 <listitem>
156 <para>Creates, modifies, and extracts from archives</para>
157 <indexterm zone="ch-system-binutils ar">
158 <primary sortas="b-ar">ar</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="as">
164 <term><command>as</command></term>
165 <listitem>
166 <para>An assembler that assembles the output of <command>gcc</command>
167 into object files</para>
168 <indexterm zone="ch-system-binutils as">
169 <primary sortas="b-as">as</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
174 <varlistentry id="c-filt">
175 <term><command>c++filt</command></term>
176 <listitem>
177 <para>Used by the linker to de-mangle C++ and Java symbols and to keep
178 overloaded functions from clashing</para>
179 <indexterm zone="ch-system-binutils c-filt">
180 <primary sortas="b-c++filt">c++filt</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 <varlistentry id="elfedit">
186 <term><command>elfedit</command></term>
187 <listitem>
188 <para>Updates the ELF header of ELF files</para>
189 <indexterm zone="ch-system-binutils elfedit">
190 <primary sortas="b-elfedit">elfedit</primary>
191 </indexterm>
192 </listitem>
193 </varlistentry>
194
195 <varlistentry id="gprof">
196 <term><command>gprof</command></term>
197 <listitem>
198 <para>Displays call graph profile data</para>
199 <indexterm zone="ch-system-binutils gprof">
200 <primary sortas="b-gprof">gprof</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry id="ld">
206 <term><command>ld</command></term>
207 <listitem>
208 <para>A linker that combines a number of object and archive files
209 into a single file, relocating their data and tying up symbol
210 references</para>
211 <indexterm zone="ch-system-binutils ld">
212 <primary sortas="b-ld">ld</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="ld.bfd">
218 <term><command>ld.bfd</command></term>
219 <listitem>
220 <para>Hard link to <command>ld</command></para>
221 <indexterm zone="ch-system-binutils ld.bfd">
222 <primary sortas="b-ld.bfd">ld.bfd</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="nm">
228 <term><command>nm</command></term>
229 <listitem>
230 <para>Lists the symbols occurring in a given object file</para>
231 <indexterm zone="ch-system-binutils nm">
232 <primary sortas="b-nm">nm</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="objcopy">
238 <term><command>objcopy</command></term>
239 <listitem>
240 <para>Translates one type of object file into another</para>
241 <indexterm zone="ch-system-binutils objcopy">
242 <primary sortas="b-objcopy">objcopy</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="objdump">
248 <term><command>objdump</command></term>
249 <listitem>
250 <para>Displays information about the given object file, with options
251 controlling the particular information to display; the information
252 shown is useful to programmers who are working on the compilation
253 tools</para>
254 <indexterm zone="ch-system-binutils objdump">
255 <primary sortas="b-objdump">objdump</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="ranlib">
261 <term><command>ranlib</command></term>
262 <listitem>
263 <para>Generates an index of the contents of an archive and stores it
264 in the archive; the index lists all of the symbols defined by archive
265 members that are relocatable object files</para>
266 <indexterm zone="ch-system-binutils ranlib">
267 <primary sortas="b-ranlib">ranlib</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="readelf">
273 <term><command>readelf</command></term>
274 <listitem>
275 <para>Displays information about ELF type binaries</para>
276 <indexterm zone="ch-system-binutils readelf">
277 <primary sortas="b-readelf">readelf</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="size">
283 <term><command>size</command></term>
284 <listitem>
285 <para>Lists the section sizes and the total size for the given
286 object files</para>
287 <indexterm zone="ch-system-binutils size">
288 <primary sortas="b-size">size</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="strings">
294 <term><command>strings</command></term>
295 <listitem>
296 <para>Outputs, for each given file, the sequences of printable
297 characters that are of at least the specified length (defaulting to
298 four); for object files, it prints, by default, only the strings from
299 the initializing and loading sections while for other types of files, it
300 scans the entire file</para>
301 <indexterm zone="ch-system-binutils strings">
302 <primary sortas="b-strings">strings</primary>
303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 <varlistentry id="strip">
308 <term><command>strip</command></term>
309 <listitem>
310 <para>Discards symbols from object files</para>
311 <indexterm zone="ch-system-binutils strip">
312 <primary sortas="b-strip">strip</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="libbfd">
318 <term><filename class="libraryfile">libbfd</filename></term>
319 <listitem>
320 <para>The Binary File Descriptor library</para>
321 <indexterm zone="ch-system-binutils libbfd">
322 <primary sortas="c-libbfd">libbfd</primary>
323 </indexterm>
324 </listitem>
325 </varlistentry>
326
327 <varlistentry id="libopcodes">
328 <term><filename class="libraryfile">libopcodes</filename></term>
329 <listitem>
330 <para>A library for dealing with opcodes&mdash;the <quote>readable
331 text</quote> versions of instructions for the processor;
332 it is used for building utilities like
333 <command>objdump</command></para>
334 <indexterm zone="ch-system-binutils libopcodes">
335 <primary sortas="c-libopcodes">libopcodes</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 </variablelist>
341
342 </sect2>
343
344</sect1>
Note: See TracBrowser for help on using the repository browser.