source: chapter08/gcc.xml@ 26e3001

11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 multilib renodr/libudev-from-systemd trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/update-glibc
Last change on this file since 26e3001 was 670f55f, checked in by Bruce Dubbs <bdubbs@…>, 21 months ago

Typos

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