Commit Graph

152 Commits

Author SHA1 Message Date
Thomas Trepl
7a51953cac Automatic merge of trunk into multilib 2023-05-02 05:36:43 +02:00
Bruce Dubbs
bd5b888ad3 Create new branch for gcc13 2023-04-27 10:01:17 -05:00
Thomas Trepl
a2434bd4c1 Automatic merge of trunk into multilib 2023-01-27 00:30:14 +01:00
Xi Ruoyao
139b77e4a2
decorate new note about $() and `` 2023-01-27 01:44:05 +08:00
Bruce Dubbs
adba2dae8a Add a comment about nested command substitution
"The command below shows an example of nested command substitution
 using two methods: backquotes and a $() construct. It could be
 rewritten using the same method for both substitutions, but is
 shown this way to demonstrate how they can be mixed. Generally
 the $() method is preferred."
2023-01-26 10:40:42 -06:00
Thomas Trepl
f0cbef54b1 Merge & fix conflicts 2022-11-23 10:45:41 +00:00
Xi Ruoyao
31e9ff9527
gcc-pass1: housekeeping after --disable-decimal-float removal 2022-11-23 00:58:21 +08:00
Xi Ruoyao
f01f8a56da
gcc: remove --disable-decimal-float from pass 1 and 2
We need to enable decimal float here or MPFR will be built w/o decimal
float support.  Then 2 of 183 tests will be skipped, and this will also
cause an ICA issue.

Q: Why we need decimal float in pass 1?
A: We need pass-1 GCC with decimal float support to build decimal float
routines in pass-2 libgcc.
2022-11-22 18:22:53 +08:00
Thomas Trepl (Moody)
1a76da03d8 Automatic merge of trunk into multilib 2022-10-31 00:30:10 +01:00
David Bryant
f6820bb618 Corrected spelling here and there. Regularized capitaization of package
names, corrected idiom / punctuation, and removed extraneous verbiage.
2022-10-30 09:23:55 -05:00
Thomas Trepl (Moody)
1835fca016 Adopt PIE/SSP changes 2022-09-13 10:07:14 +02:00
Thomas Trepl (Moody)
c49c1fb77f Automatic merge of trunk into multilib 2022-09-12 00:30:10 +02:00
Xi Ruoyao
e502de1ab0
gcc: some reword of PIE/SSP/ASLR note
Expand tabs to 8 spaces like everywhere else in the book.

Explain that shared libraries are already covered by ASLR, PIE expands
the ASLR to cover the exetutables.

In 2022, stack smashing attackings are mostly constructing a sequence of
faked returning addresses to exectute a series of function already
existing in the programs or libraries itself (ret2lib).  Returning into
the code injected by the attacker is almost impossible because on
i686 (with a PAE/NX enabled kernel) or x86_64, running injected code
needs W/X mappings and those are very rare these days.
2022-09-11 11:35:06 +08:00
Thomas Trepl (Moody)
530771a7bb Automatic merge of trunk into multilib 2022-09-11 00:30:11 +02:00
Pierre Labastie
8d3b2541da gcc-pass1: fix bold "and" in command explanation 2022-09-10 14:01:42 +02:00
Pierre Labastie
1bade3f439 Document the --enable-default-pie/ssp options
Also document test failures in gcc chapter 8
2022-09-10 13:41:38 +02:00
Thomas Trepl (Moody)
3c20ad9381 Automatic merge of trunk into multilib 2022-09-10 00:30:10 +02:00
Pierre Labastie
0611f706d5 Use default-pie and default-ssp flags in gcc
Committing only the commands for now, so that others can test the
build. TODO:
- add command explanations
- add changelog
- comment on failing tests in binutils and gcc
2022-09-09 16:15:06 +02:00
Thomas Trepl (Moody)
3a72ffa858 Adopt upstream changes 2022-05-11 08:56:48 +02:00
Xi Ruoyao
e1d233c8af
gcc-12: remove --enable-initfini-array in pass 1
Reference: https://gcc.gnu.org/r12-1328
2022-05-06 20:31:01 +08:00
Thomas Trepl (Moody)
caf32c82d6 Fix an old copy error 2022-04-17 22:22:21 +02:00
Thomas Trepl (Moody)
3b70f926ce Automatic merge of trunk into multilib 2022-02-19 05:45:14 +01:00
Xi Ruoyao
d6006ef769
relax host system requirements
A requirement on Glibc is not needed at all.  It's enough once
$LFS_TGT-* is runnable.  A test on Alpine (using musl as libc) has
practically proved this.

We'd raised binutils and GCC requirements mostly for Glibc.  But now
Glibc is cross compiled by our cross toolchain with latest GCC and
binutils release, the host tools really does not matter.  In the Glibc
building process only two .c files are build with BUILD_CC (the C
compiler from the host), and they are highly conservative (mostly
unchanged for years).

Binutils does not have too much requirement on host GCC & Binutils:
there is even a Binutils commit in this week fixing a build failure with
GCC-4.2!

So the most strict limitation comes from GCC.  GCC requires host GCC to
support ISO C++ 11 so GCC >= 4.8 is needed.  And both GCC-4.8 and latest
GCC-11.2 claims a requirement for Binutils-2.12 (for x86_64) or 2.13.1
(for 32-bit x86), so we make minimal Binutils version 2.13.1.

And, host bzip2 is never used now: the only .tar.bz2 files are elfutils
and python docs.  They are not decompressed before entering chroot.
2022-02-19 10:29:47 +08:00
Bruce Dubbs
9904ecb1de Spelling/Typos 2022-02-18 14:49:40 -06:00
Thomas Trepl (Moody)
c4595c3bd1 Fix usage of ISL in gcc 2022-01-20 23:31:05 +01:00
Thomas Trepl (Moody)
7abb6a9fef Automatic merge of trunk into multilib 2021-12-03 05:45:10 +01:00
Xi Ruoyao
0fc98a07ff
gcc-pass1: set --with-glibc-version to target glibc version
"info gccinstall" says:

'--with-glibc-version=MAJOR.MINOR'
     Tell GCC that when the GNU C Library (glibc) is used on the target
     it will be version MAJOR.MINOR or later.  Normally this can be
     detected from the C library's header files, but this option may be
     needed when bootstrapping a cross toolchain without the header
     files available for building the initial bootstrap compiler.

So it can, and should be set to the version of glibc which will be built
for the chroot environment.

On x86_64, currently it does not make any difference with values >=
2.13.  But it may make a difference if a new feature is added to glibc,
or on other platforms.
2021-12-03 03:06:18 +08:00
Thomas Trepl (Moody)
716db1f765 Merge upstream 2021-09-20 09:37:34 +02:00
Bruce Dubbs
43b6ecdc1f Remove extra spaces 2021-09-15 11:24:27 -05:00
Pierre Labastie
a26f29f645 Remove spaces at end o lines - chapter05 2021-09-07 22:43:31 +02:00
Thomas Trepl (Moody)
0ebda11158 Remove entities for multilib pathes
Add usage of libc_cv_rtlddir
2021-05-14 12:47:43 +02:00
Thomas Trepl
6dfcfecca3
Update to new lfs structure
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11986 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-31 18:41:39 +08:00
Thomas Trepl
630308d8e5
MultiLib: Merge changes from trunk
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11801 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-31 18:41:38 +08:00
Thomas Trepl
6fc519eba0
Updates after 9.1 release
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11766 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-31 18:41:37 +08:00
Thomas Trepl
e2ccc32118
Merge upstream; Upgrade isl+firmware; add description to glibc
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11759 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-31 18:41:37 +08:00
Thomas Trepl
43822ccfaa
MultiLib: Merge changes from trunk
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11757 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-31 18:41:37 +08:00
Thomas Trepl
5066dee828
MultiLib: Merge changes from trunk
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11623 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-31 18:41:35 +08:00
Thomas Trepl
f5ae110a14
Merge changes from trunk
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11606 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-31 18:41:35 +08:00
Thomas Trepl
cad96bf236
Merge upstream changes
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11601 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-31 18:41:35 +08:00
Thomas Trepl
714599ff52
Apply trunk changes
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11577 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-31 18:41:34 +08:00
Thomas Trepl
9c0c3a0966
Simplify instructions for multilib support. Fixes #4453
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11575 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-31 18:41:34 +08:00
Thomas Trepl
fd48baafd5
Change profiling attribute to enable selection of m32 and/or mx32. Fixes #4452.
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11571 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-31 18:41:34 +08:00
Thomas Trepl
b3f1ebb313
First apply of multilib-patch of April 1st, 2019
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11566 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-31 18:41:31 +08:00
Pierre Labastie
77d2cd8d43 - fix some gcc->GCC
- remove commented text in glibc (chap 5), and fix a directory location

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11934 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-13 08:55:55 +00:00
Thomas Trepl
fb386e05f1 Rename package entities to be independent of chapter numbering
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11921 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-11 12:55:28 +00:00
Bruce Dubbs
79524a0c69 Text updates for cross2 Chapter 5
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11914 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-09 23:10:16 +00:00
Bruce Dubbs
fcc027677d Initial commit of alternative cross LFS
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11897 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-07 20:16:00 +00:00
Pierre Labastie
efcb393343 Make the new book
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11831 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-05-03 21:02:51 +00:00
Bruce Dubbs
97af73804e Typo
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11799 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-03-28 16:48:44 +00:00
Bruce Dubbs
649045ce16 LFS-9.1
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11762 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-02-29 21:24:14 +00:00