source: chapter08/gcc.xml@ 72e10c9

multilib
Last change on this file since 72e10c9 was da2e8cb, checked in by Thomas Trepl <thomas@…>, 13 months ago

Automatic merge of trunk into multilib

  • Property mode set to 100644
File size: 27.1 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-gcc" role="wrap">
9 <?dbhtml filename="gcc.html"?>
10
11 <sect1info condition="script">
12 <productname>gcc</productname>
13 <productnumber>&gcc-version;</productnumber>
14 <address>&gcc-url;</address>
15 </sect1info>
16
17 <title>GCC-&gcc-version;</title>
18
19 <indexterm zone="ch-system-gcc">
20 <primary sortas="a-GCC">GCC</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The GCC package contains the GNU compiler collection, which includes
27 the C and C++ compilers.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&gcc-fin-sbu;</seg>
35 <seg>&gcc-fin-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of GCC</title>
43<!--
44 <para>At first, fix an issue breaking
45 <filename class="libraryfile">libasan.a</filename> building this package
46 with Glibc-2.34 or later:</para>
47
48<screen><userinput remap="pre">sed -e '/static.*SIGSTKSZ/d' \
49 -e 's/return kAltStackSize/return SIGSTKSZ * 4/' \
50 -i libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cpp</userinput></screen>
51-->
52<!--
53 <para>First fix a problem with the latest version of glibc:</para>
54
55 <screen><userinput remap="pre">patch -Np1 -i ../&gcc-upstream-fixes-patch;</userinput></screen>
56-->
57 <para>If building on x86_64, change the default directory name for 64-bit
58 libraries to <quote>lib</quote>:</para>
59
60<screen arch="default"><userinput remap="pre">case $(uname -m) in
61 x86_64)
62 sed -e '/m64=/s/lib64/lib/' \
63 -i.orig gcc/config/i386/t-linux64
64 ;;
65esac</userinput></screen>
66
67 <para arch="ml_32,ml_x32,ml_all">Change the default directory name for 64-bit
68 libraries to <quote>lib</quote>:</para>
69
70<screen arch="ml_32,ml_x32,ml_all"><userinput remap="pre">sed -e '/m64=/s/lib64/lib/' \
71 -e '/m32=/s/m32=.*/m32=..\/lib32$(call if_multiarch,:i386-linux-gnu)/' \
72 -i.orig gcc/config/i386/t-linux64</userinput></screen>
73
74 <para>The GCC documentation recommends building GCC in a dedicated build directory:</para>
75
76<screen><userinput remap="pre">mkdir -v build
77cd build</userinput></screen>
78
79 <para>Prepare GCC for compilation:</para>
80
81<screen arch="default"><userinput remap="configure">../configure --prefix=/usr \
82 LD=ld \
83 --enable-languages=c,c++ \
84 --enable-default-pie \
85 --enable-default-ssp \
86 --disable-multilib \
87 --disable-bootstrap \
88 --disable-fixincludes \
89 --with-system-zlib</userinput></screen>
90<screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure"
91 arch="ml_32" >mlist=m64,m32</userinput><userinput remap="configure"
92 arch="ml_x32">mlist=m64,mx32</userinput><userinput remap="configure"
93 arch="ml_all">mlist=m64,m32,mx32</userinput>
94<userinput remap="configure">../configure --prefix=/usr \
95 LD=ld \
96 --enable-languages=c,c++ \
97 --enable-default-pie \
98 --enable-default-ssp \
99 --enable-multilib \
100 --with-multilib-list=$mlist \
101 --disable-bootstrap \
102 --with-system-zlib</userinput></screen>
103
104 <para>GCC supports seven different computer languages, but the
105 prerequisites for most of them have not yet been installed. See the
106 <ulink url="&blfs-book;general/gcc.html">BLFS Book GCC page</ulink>
107 for instructions on how to build all of GCC's supported languages.</para>
108
109 <variablelist>
110 <title>The meaning of the new configure parameters:</title>
111
112 <varlistentry>
113 <term><parameter>LD=ld</parameter></term>
114 <listitem>
115 <para>This parameter makes the configure script use the ld program installed
116 by the Binutils package built earlier in this chapter, rather than
117 the cross-built version which would otherwise be used.</para>
118 </listitem>
119 </varlistentry>
120
121 <varlistentry>
122 <term><parameter>--disable-fixincludes</parameter></term>
123 <listitem>
124 <para>By default, during the installation of GCC some system
125 headers would be <quote>fixed</quote> to be used with GCC. This
126 is not necessary for a modern Linux system, and potentially
127 harmful if a package is reinstalled after installing GCC. This
128 switch prevents GCC from <quote>fixing</quote> the headers.</para>
129 </listitem>
130 </varlistentry>
131
132 <varlistentry>
133 <term><parameter>--with-system-zlib</parameter></term>
134 <listitem>
135 <para>This switch tells GCC to link to the system installed copy of
136 the Zlib library, rather than its own internal copy.</para>
137 </listitem>
138 </varlistentry>
139 </variablelist>
140
141 <note>
142 <anchor id="pie-ssp-info" xreflabel="note on PIE and SSP"/>
143 <para>
144 PIE (position-independent executables) are
145 binary programs that can be loaded anywhere in memory. Without PIE,
146 the security feature named ASLR (Address Space Layout Randomization)
147 can be applied for the shared libraries, but not for the executables
148 themselves. Enabling PIE allows ASLR for the executables in addition to
149 the shared libraries, and mitigates some attacks based on fixed
150 addresses of sensitive code or data in the executables.
151 </para>
152 <para>
153 SSP (Stack Smashing Protection) is a technique to ensure
154 that the parameter stack is not corrupted. Stack corruption can,
155 for example, alter the return address of a subroutine,
156 thus transferring control to some dangerous code
157 (existing in the program or shared libraries, or injected by the
158 attacker somehow).
159 </para>
160 </note>
161
162 <para>Compile the package:</para>
163
164<screen><userinput remap="make">make</userinput></screen>
165
166 <important>
167 <para>In this section, the test suite for GCC is considered
168 important, but it takes a long time. First-time builders are
169 encouraged to run the test suite. The time to run the tests can be
170 reduced significantly by adding -jx to the <command>make -k check</command> command below,
171 where x is the number of CPU cores on your system.</para>
172 </important>
173
174 <para>One set of tests in the GCC test suite is known to exhaust the default
175 stack, so increase the stack size prior to running the tests:</para>
176
177<screen><userinput remap="test">ulimit -s 32768</userinput></screen>
178
179 <para>Test the results as a non-privileged user, but do not stop at errors:</para>
180
181<screen><userinput remap="test">chown -Rv tester .
182su tester -c "PATH=$PATH make -k check"</userinput></screen>
183
184 <para>To extract a summary of the test suite results, run:</para>
185
186<screen><userinput remap="test">../contrib/test_summary</userinput></screen>
187
188 <para>To filter out only the summaries, pipe the output through
189 <userinput>grep -A7 Summ</userinput>.</para>
190
191 <para>Results can be compared with those located at <ulink
192 url="&test-results;"/> and
193 <ulink url="https://gcc.gnu.org/ml/gcc-testresults/"/>.</para>
194
195 <para><!--Two tests named <filename>pr104610.c</filename> and
196 <filename>pr69482-1.c</filename> are known to fail because the test
197 files does not account for the
198 <parameter>- -enable-default-ssp</parameter> option.-->
199 <!-- https://gcc.gnu.org/PR106375 and https://gcc.gnu.org/PR109353 -->
200 Two tests named <filename>copy.cc</filename> and
201 <filename>pr56837.c</filename> are known to fail.
202 <!-- https://gcc.gnu.org/PR107855#c6 -->
203 Additionally, several tests in the
204 <filename class='directory'>vect</filename> directory are known to fail
205 if the hardware does not support AVX.</para>
206
207 <para>A few unexpected failures cannot always be avoided. The GCC developers
208 are usually aware of these issues, but have not resolved them yet.
209 Unless the test results are vastly different from those at the above URL,
210 it is safe to continue.</para>
211
212 <!--note><para>
213 On some combinations of kernel configuration and AMD processors
214 there may be more than 1100 failures in the gcc.target/i386/mpx
215 tests (which are designed to test the MPX option on recent
216 Intel processors). These can safely be ignored on AMD
217 processors. These tests will also fail on Intel processors if MPX support
218 is not enabled in the kernel even though it is present on the CPU.
219 </para></note-->
220
221 <para>Install the package:</para>
222
223<screen><userinput remap="install">make install</userinput></screen>
224
225 <para>The GCC build directory is owned by <systemitem class="username">
226 tester</systemitem> now, and the ownership of the installed header
227 directory (and its content) is incorrect. Change the ownership to the
228 <systemitem class="username">root</systemitem> user and group:</para>
229
230<screen><userinput remap="install">chown -v -R root:root \
231 /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include{,-fixed}</userinput></screen>
232
233 <para>Create a symlink required by the <ulink
234 url="https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s09.html">FHS</ulink>
235 for "historical" reasons.</para>
236
237<screen><userinput remap="install">ln -svr /usr/bin/cpp /usr/lib</userinput></screen>
238
239 <para>Many packages use the name <command>cc</command> to call the C
240 compiler. We've already created <command>cc</command> as a symlink in
241 <xref linkend='ch-tools-gcc-pass2'/>, create its man page as a symlink
242 as well:</para>
243
244<screen><userinput remap="install">ln -sv gcc.1 /usr/share/man/man1/cc.1</userinput></screen>
245
246 <para>Add a compatibility symlink to enable building programs with
247 Link Time Optimization (LTO):</para>
248
249<screen><userinput remap="install">ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \
250 /usr/lib/bfd-plugins/</userinput></screen>
251
252 <para>Now that our final toolchain is in place, it is important to again ensure
253 that compiling and linking will work as expected. We do this by performing
254 some sanity checks:</para>
255
256<screen><userinput>echo 'int main(){}' &gt; dummy.c
257cc dummy.c -v -Wl,--verbose &amp;&gt; dummy.log
258readelf -l a.out | grep ': /lib'</userinput></screen>
259
260 <para>There should be no errors,
261 and the output of the last command will be (allowing for
262 platform-specific differences in the dynamic linker name):</para>
263
264<screen><computeroutput>[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]</computeroutput></screen>
265
266 <para>Now make sure that we're set up to use the correct start files:</para>
267
268<screen><userinput>grep -E -o '/usr/lib.*/S?crt[1in].*succeeded' dummy.log</userinput></screen>
269
270 <para>The output of the last command should be:</para>
271
272<screen><computeroutput>/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/Scrt1.o succeeded
273/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crti.o succeeded
274/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crtn.o succeeded</computeroutput></screen>
275
276 <para>Depending on your machine architecture, the above may differ slightly.
277 The difference will be the name of the directory
278 after <filename class="directory">/usr/lib/gcc</filename>. The important
279 thing to look for here is that <command>gcc</command> has found all three
280 <filename>crt*.o</filename> files under the
281 <filename class="directory">/usr/lib</filename> directory.</para>
282
283 <para>Verify that the compiler is searching for the correct header
284 files:</para>
285
286<screen><userinput>grep -B4 '^ /usr/include' dummy.log</userinput></screen>
287
288 <para>This command should return the following output:</para>
289
290<screen><computeroutput>#include &lt;...&gt; search starts here:
291 /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include
292 /usr/local/include
293 /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include-fixed
294 /usr/include</computeroutput></screen>
295
296 <para>Again, the directory named after your target triplet may be
297 different than the above, depending on your system architecture.</para>
298
299 <para>Next, verify that the new linker is being used with the correct search paths:</para>
300
301<screen><userinput>grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'</userinput></screen>
302
303 <para>References to paths that have components with '-linux-gnu' should
304 be ignored, but otherwise the output of the last command should be:</para>
305
306<screen><computeroutput>SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64")
307SEARCH_DIR("/usr/local/lib64")
308SEARCH_DIR("/lib64")
309SEARCH_DIR("/usr/lib64")
310SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib")
311SEARCH_DIR("/usr/local/lib")
312SEARCH_DIR("/lib")
313SEARCH_DIR("/usr/lib");</computeroutput></screen>
314
315 <para arch="default">A 32-bit system may use a few other directories. For example, here
316 is the output from an i686 machine:</para>
317
318<!-- not using entities here as the dir names has nothing to do with multilib -->
319<screen arch="default"><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32")
320SEARCH_DIR("/usr/local/lib32")
321SEARCH_DIR("/lib32")
322SEARCH_DIR("/usr/lib32")
323SEARCH_DIR("/usr/i686-pc-linux-gnu/lib")
324SEARCH_DIR("/usr/local/lib")
325SEARCH_DIR("/lib")
326SEARCH_DIR("/usr/lib");</computeroutput></screen>
327
328 <para>Next make sure that we're using the correct libc:</para>
329
330<screen><userinput>grep "/lib.*/libc.so.6 " dummy.log</userinput></screen>
331
332 <para>The output of the last command should be:</para>
333
334<screen><computeroutput>attempt to open /usr/lib/libc.so.6 succeeded</computeroutput></screen>
335
336 <para>Make sure GCC is using the correct dynamic linker:</para>
337
338<screen><userinput>grep found dummy.log</userinput></screen>
339
340 <para>The output of the last command should be (allowing for
341 platform-specific differences in dynamic linker name):</para>
342
343<screen><computeroutput>found ld-linux-x86-64.so.2 at /usr/lib/ld-linux-x86-64.so.2</computeroutput></screen>
344
345 <para>If the output does not appear as shown above or is not received
346 at all, then something is seriously wrong. Investigate and retrace the
347 steps to find out where the problem is and correct it. <!--The most likely
348 reason is that something went wrong with the specs file adjustment.--> Any
349 issues should be resolved before continuing with the process.</para>
350
351 <para>Once everything is working correctly, clean up the test files:</para>
352
353<screen><userinput>rm -v dummy.c a.out dummy.log</userinput></screen>
354
355 <para>Finally, move a misplaced file:</para>
356
357<screen><userinput remap="install">mkdir -pv /usr/share/gdb/auto-load/usr/lib
358mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>
359
360 </sect2>
361
362 <sect2 id="contents-gcc" role="content">
363 <title>Contents of GCC</title>
364
365 <segmentedlist>
366 <segtitle>Installed programs</segtitle>
367 <segtitle>Installed libraries</segtitle>
368 <segtitle>Installed directories</segtitle>
369
370 <seglistitem>
371 <seg>c++, cc (link to gcc), cpp, g++, gcc,
372 gcc-ar, gcc-nm, gcc-ranlib, gcov, gcov-dump, gcov-tool,
373 and lto-dump</seg>
374
375 <seg>libasan.{a,so}, libatomic.{a,so}, libcc1.so, libgcc.a, libgcc_eh.a,
376 libgcc_s.so, libgcov.a, libgomp.{a,so}, libhwasan.{a,so}, libitm.{a,so},
377 liblsan.{a,so}, liblto_plugin.so,
378 libquadmath.{a,so}, libssp.{a,so}, libssp_nonshared.a,
379 libstdc++.{a,so}, libstdc++exp.a, libstdc++fs.a, libsupc++.a, libtsan.{a,so},
380 and libubsan.{a,so}</seg>
381
382 <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and
383 /usr/share/gcc-&gcc-version;</seg>
384 </seglistitem>
385 </segmentedlist>
386
387 <variablelist>
388 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
389 <?dbfo list-presentation="list"?>
390 <?dbhtml list-presentation="table"?>
391
392 <varlistentry id="c">
393 <term><command>c++</command></term>
394 <listitem>
395 <para>The C++ compiler</para>
396 <indexterm zone="ch-system-gcc c">
397 <primary sortas="b-c++">c++</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="cc">
403 <term><command>cc</command></term>
404 <listitem>
405 <para>The C compiler</para>
406 <indexterm zone="ch-system-gcc cc">
407 <primary sortas="b-cc">cc</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry id="cpp">
413 <term><command>cpp</command></term>
414 <listitem>
415 <para>The C preprocessor; it is used by the compiler to expand the
416 #include, #define, and similar directives in the source files</para>
417 <indexterm zone="ch-system-gcc cpp">
418 <primary sortas="b-cpp">cpp</primary>
419 </indexterm>
420 </listitem>
421 </varlistentry>
422
423 <varlistentry id="g">
424 <term><command>g++</command></term>
425 <listitem>
426 <para>The C++ compiler</para>
427 <indexterm zone="ch-system-gcc g">
428 <primary sortas="b-g++">g++</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
433 <varlistentry id="gcc">
434 <term><command>gcc</command></term>
435 <listitem>
436 <para>The C compiler</para>
437 <indexterm zone="ch-system-gcc gcc">
438 <primary sortas="b-gcc">gcc</primary>
439 </indexterm>
440 </listitem>
441 </varlistentry>
442
443 <varlistentry id="gcc-ar">
444 <term><command>gcc-ar</command></term>
445 <listitem>
446 <para>A wrapper around <command>ar</command> that adds a
447 plugin to the command line. This program is only used
448 to add "link time optimization" and is not useful with the
449 default build options.</para>
450 <indexterm zone="ch-system-gcc gcc-ar">
451 <primary sortas="b-gcc-ar">gc-ar</primary>
452 </indexterm>
453 </listitem>
454 </varlistentry>
455
456 <varlistentry id="gcc-nm">
457 <term><command>gcc-nm</command></term>
458 <listitem>
459 <para>A wrapper around <command>nm</command> that adds a
460 plugin to the command line. This program is only used
461 to add "link time optimization" and is not useful with the
462 default build options.</para>
463 <indexterm zone="ch-system-gcc gcc-nm">
464 <primary sortas="b-gcc-nm">gc-nm</primary>
465 </indexterm>
466 </listitem>
467 </varlistentry>
468
469 <varlistentry id="gcc-ranlib">
470 <term><command>gcc-ranlib</command></term>
471 <listitem>
472 <para>A wrapper around <command>ranlib</command> that adds a
473 plugin to the command line. This program is only used
474 to add "link time optimization" and is not useful with the
475 default build options.</para>
476 <indexterm zone="ch-system-gcc gcc-ranlib">
477 <primary sortas="b-gcc-ranlib">gc-ranlib</primary>
478 </indexterm>
479 </listitem>
480 </varlistentry>
481
482 <varlistentry id="gcov">
483 <term><command>gcov</command></term>
484 <listitem>
485 <para>A coverage testing tool; it is used to analyze programs to
486 determine where optimizations will have the greatest effect</para>
487 <indexterm zone="ch-system-gcc gcov">
488 <primary sortas="b-gcov">gcov</primary>
489 </indexterm>
490 </listitem>
491 </varlistentry>
492
493 <varlistentry id="gcov-dump">
494 <term><command>gcov-dump</command></term>
495 <listitem>
496 <para>Offline gcda and gcno profile dump tool</para>
497 <indexterm zone="ch-system-gcc gcov-dump">
498 <primary sortas="b-gcov-dump">gcov-dump</primary>
499 </indexterm>
500 </listitem>
501 </varlistentry>
502
503 <varlistentry id="gcov-tool">
504 <term><command>gcov-tool</command></term>
505 <listitem>
506 <para>Offline gcda profile processing tool</para>
507 <indexterm zone="ch-system-gcc gcov-tool">
508 <primary sortas="b-gcov-tool">gcov-tool</primary>
509 </indexterm>
510 </listitem>
511 </varlistentry>
512
513 <varlistentry id="lto-dump">
514 <term><command>lto-dump</command></term>
515 <listitem>
516 <para>Tool for dumping object files produced by GCC with LTO
517 enabled</para>
518 <indexterm zone="ch-system-gcc lto-dump">
519 <primary sortas="b-lto-dump">lto-dump</primary>
520 </indexterm>
521 </listitem>
522 </varlistentry>
523
524 <varlistentry id="libasan">
525 <term><filename class="libraryfile">libasan</filename></term>
526 <listitem>
527 <para>The Address Sanitizer runtime library</para>
528 <indexterm zone="ch-system-gcc libasan">
529 <primary sortas="b-libasan">libasan</primary>
530 </indexterm>
531 </listitem>
532 </varlistentry>
533
534 <varlistentry id="libatomic">
535 <term><filename class="libraryfile">libatomic</filename></term>
536 <listitem>
537 <para>GCC atomic built-in runtime library</para>
538 <indexterm zone="ch-system-gcc libatomic">
539 <primary sortas="b-libatomic">libatomic</primary>
540 </indexterm>
541 </listitem>
542 </varlistentry>
543
544 <varlistentry id="libcc1">
545 <term><filename class="libraryfile">libcc1</filename></term>
546 <listitem>
547 <para>The C preprocessing library</para>
548 <indexterm zone="ch-system-gcc libcc1">
549 <primary sortas="b-libcc1">libcc1</primary>
550 </indexterm>
551 </listitem>
552 </varlistentry>
553
554 <varlistentry id="libgcc">
555 <term><filename class="libraryfile">libgcc</filename></term>
556 <listitem>
557 <para>Contains run-time support for <command>gcc</command></para>
558 <indexterm zone="ch-system-gcc libgcc">
559 <primary sortas="c-libgcc">libgcc</primary>
560 </indexterm>
561 </listitem>
562 </varlistentry>
563
564 <varlistentry id="libgcov">
565 <term><filename class="libraryfile">libgcov</filename></term>
566 <listitem>
567 <para>This library is linked into a program when GCC is instructed
568 to enable profiling</para>
569 <indexterm zone="ch-system-gcc libgcov">
570 <primary sortas="c-libgcov">libgcov</primary>
571 </indexterm>
572 </listitem>
573 </varlistentry>
574
575 <varlistentry id="libgomp">
576 <term><filename class="libraryfile">libgomp</filename></term>
577 <listitem>
578 <para>GNU implementation of the OpenMP API for multi-platform
579 shared-memory parallel programming in C/C++ and Fortran</para>
580 <indexterm zone="ch-system-gcc libgomp">
581 <primary sortas="c-libgomp">libgomp</primary>
582 </indexterm>
583 </listitem>
584 </varlistentry>
585
586 <varlistentry id="libhwasan">
587 <term><filename class="libraryfile">libhwasan</filename></term>
588 <listitem>
589 <para>The Hardware-assisted Address Sanitizer runtime library</para>
590 <indexterm zone="ch-system-gcc libhwasan">
591 <primary sortas="c-libhwasan">libhwasan</primary>
592 </indexterm>
593 </listitem>
594 </varlistentry>
595
596 <varlistentry id="libitm">
597 <term><filename class="libraryfile">libitm</filename></term>
598 <listitem>
599 <para>The GNU transactional memory library</para>
600 <indexterm zone="ch-system-gcc libitm">
601 <primary sortas="c-libitm">libitm</primary>
602 </indexterm>
603 </listitem>
604 </varlistentry>
605
606 <varlistentry id="liblsan">
607 <term><filename class="libraryfile">liblsan</filename></term>
608 <listitem>
609 <para>The Leak Sanitizer runtime library</para>
610 <indexterm zone="ch-system-gcc liblsan">
611 <primary sortas="c-liblsan">liblsan</primary>
612 </indexterm>
613 </listitem>
614 </varlistentry>
615
616 <varlistentry id="liblto_plugin">
617 <term><filename class="libraryfile">liblto_plugin</filename></term>
618 <listitem>
619 <para>GCC's LTO plugin allows Binutils to process object files
620 produced by GCC with LTO enabled</para>
621 <indexterm zone="ch-system-gcc liblto_plugin">
622 <primary sortas="c-liblto_plugin">liblto_plugin</primary>
623 </indexterm>
624 </listitem>
625 </varlistentry>
626
627 <varlistentry id="libquadmath">
628 <term><filename class="libraryfile">libquadmath</filename></term>
629 <listitem>
630 <para>GCC Quad Precision Math Library API</para>
631 <indexterm zone="ch-system-gcc libquadmath">
632 <primary sortas="c-libquadmath">libquadmath</primary>
633 </indexterm>
634 </listitem>
635 </varlistentry>
636
637 <varlistentry id="libssp">
638 <term><filename class="libraryfile">libssp</filename></term>
639 <listitem>
640 <para>Contains routines supporting GCC's stack-smashing protection
641 functionality. Normally it is not used, because Glibc also provides
642 those routines.</para>
643 <indexterm zone="ch-system-gcc libssp">
644 <primary sortas="c-libssp">libssp</primary>
645 </indexterm>
646 </listitem>
647 </varlistentry>
648
649 <varlistentry id="libstdc">
650 <term><filename class="libraryfile">libstdc++</filename></term>
651 <listitem>
652 <para>The standard C++ library</para>
653 <indexterm zone="ch-system-gcc libstdc">
654 <primary sortas="c-libstdc++">libstdc++</primary>
655 </indexterm>
656 </listitem>
657 </varlistentry>
658
659 <varlistentry id="libstdcexp">
660 <term><filename class="libraryfile">libstdc++exp</filename></term>
661 <listitem>
662 <para>Experimental C++ Contracts library</para>
663 <indexterm zone="ch-system-gcc libstdcexp">
664 <primary sortas="c-libstdc++exp">libstdc++exp</primary>
665 </indexterm>
666 </listitem>
667 </varlistentry>
668
669 <varlistentry id="libstdcfs">
670 <term><filename class="libraryfile">libstdc++fs</filename></term>
671 <listitem>
672 <para>ISO/IEC TS 18822:2015 Filesystem library</para>
673 <indexterm zone="ch-system-gcc libstdcfs">
674 <primary sortas="c-libstdc++fs">libstdc++fs</primary>
675 </indexterm>
676 </listitem>
677 </varlistentry>
678
679 <varlistentry id="libsupc">
680 <term><filename class="libraryfile">libsupc++</filename></term>
681 <listitem>
682 <para>Provides supporting routines for the C++ programming
683 language</para>
684 <indexterm zone="ch-system-gcc libsupc">
685 <primary sortas="c-libsupc++">libsupc++</primary>
686 </indexterm>
687 </listitem>
688 </varlistentry>
689
690 <varlistentry id="libtsan">
691 <term><filename class="libraryfile">libtsan</filename></term>
692 <listitem>
693 <para>The Thread Sanitizer runtime library</para>
694 <indexterm zone="ch-system-gcc libtsan">
695 <primary sortas="c-libtsan">libtsan</primary>
696 </indexterm>
697 </listitem>
698 </varlistentry>
699
700 <varlistentry id="libubsan">
701 <term><filename class="libraryfile">libubsan</filename></term>
702 <listitem>
703 <para>The Undefined Behavior Sanitizer runtime library</para>
704 <indexterm zone="ch-system-gcc libubsan">
705 <primary sortas="c-libubsan">libubsan</primary>
706 </indexterm>
707 </listitem>
708 </varlistentry>
709
710 </variablelist>
711
712 </sect2>
713
714</sect1>
Note: See TracBrowser for help on using the repository browser.