Michael Tremer
b9a4368adb
glibc: Fix CVE-2021-33574 and follow-up issue
...
The mq_notify function has a potential use-after-free issue when using a
notification type of SIGEV_THREAD and a thread attribute with a non-default
affinity mask.
The fix for this introduced a NULL pointer dereference.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org >
2021-09-10 07:36:49 +00:00
Arne Fitzenreiter
955ab2f5c3
glibc: fix for older i?86 cpu's
...
with such cpu the libc fails with CPU ISA level is lower than required. So this disable
ISA support.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org >
2021-07-06 06:18:09 +02:00
Michael Tremer
60832138c1
glibc: Update to 2.33
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2021-07-05 07:42:39 +02:00
Arne Fitzenreiter
aafdd71b04
switch arm 32 bit arch from armv5tel to armv6l
...
we have no supported armv5tel board left so we can switch to the higher
arch. This now can use the vpu (still in softfp calling convention to
not break existing installations.)
this fix many compile problems, also boost is now working again.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org >
2021-07-05 07:42:39 +02:00
Michael Tremer
cf6c8e67fb
glibc: Disable libcrypt and ship libxcrypt instead
...
libcrypt is deprecated in glibc, and is now explicitely disabled.
Instead we ship libxcrypt which is an alternative implemenation and can be used as a drop-in replacement.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2021-02-05 18:43:05 +00:00
Arne Fitzenreiter
d83422d1c0
toolchain: fix build with gcc<8 on builder.
...
gcc-7 not support -fcf-protection so filter it from CFLAGS.
also filter -mtune in first pass because it should optimized for the
actual host.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org >
2020-09-24 07:36:01 +02:00
Michael Tremer
44bfc40640
glibc: aarch64: Ignore uninitialised variables in the stage2 build, too
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2020-08-17 10:05:40 +00:00
Michael Tremer
de57b780be
glibc: Pass -Wno-error=maybe-uninitialized
...
This is required to build glibc in the toolchain stage on
aarch64 due to messy headers on the host system.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2020-08-16 10:29:43 +00:00
Michael Tremer
a7f6809c7f
glibc: Drop any custom CFLAGS
...
glibc is nothing special and can and should be built with
the same flags than the rest of the system.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2020-08-16 10:29:43 +00:00
Michael Tremer
6843949dac
Update glibc to 2.32
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2020-08-16 10:29:42 +00:00
Michael Tremer
29cb9e478a
glibc: Update to 2.31
...
Fixes : #12288
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org >
2020-03-22 07:30:45 +00:00
Arne Fitzenreiter
6ef219bbe0
glibc: enbable parallel build for locales
...
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org >
2019-09-18 16:30:49 +00:00
Michael Tremer
864a5befd9
glibc: Update to 2.29
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2019-04-28 09:44:38 +01:00
Michael Tremer
9af7531136
glibc: Update to 2.28
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2018-10-24 11:16:38 +01:00
Michael Tremer
59a6d4e439
glibc: Enable obsolete NSL
...
This will re-activate the deprecated NIS code on which lots of
software relies on so that we can have some extra time to migrate.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2018-02-11 20:56:12 +00:00
Michael Tremer
65a75e0ddf
glibc: Update to 2.27
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2018-02-11 20:56:12 +00:00
Arne Fitzenreiter
11b5e5cb8e
toolchain: update to gcc-7.3.0 and enable retpolines on x86_64 and i586
...
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org >
2018-02-11 20:56:12 +00:00
Michael Tremer
6c4cc7ea1b
Move toolchain from /tools to /tools_${arch}
...
This will allow us to run multiple builds on the same
system at the same time (or at least have them on disk).
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2017-11-23 15:57:28 +00:00
Michael Tremer
15a2c03f5d
glibc: Don't use locale-archive
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2017-06-15 11:45:19 +01:00
Michael Tremer
dfa795eb1a
glibc: Do not enable stack-smashing protector in toolchain stage
...
This is causing build errors on some systems where the host
system does or does not use SSP.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2017-05-18 12:07:24 +01:00
Michael Tremer
3e477b7d73
glibc: Install obsolete RPC headers
...
Some programs still use these and therefore we need to install
them here.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2017-05-18 12:06:09 +01:00
Michael Tremer
fe2adb0cdf
glibc: Test toolchain after build
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2017-05-18 12:05:29 +01:00
Michael Tremer
b7093f17d5
stage1: New build script
...
Creates some basic directories and symlinks in toolchain stage
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2017-05-18 12:04:20 +01:00
Michael Tremer
dc7d6b204d
make.sh: Cleanup of polluted environment
...
The build environment is using a number of variables which
occasionally conflicted with some other build systems.
This patch cleans that up by renaming some variables and
later unexporting them in the lfs files.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2017-05-18 12:02:03 +01:00
Michael Tremer
de1928cca7
glibc: Enable hard float abi when compiling for armv7hl
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2017-05-18 12:01:34 +01:00
Michael Tremer
6b9f806e95
glibc: Update to 2.25
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2017-05-18 11:58:44 +01:00
Arne Fitzenreiter
802b916d10
Merge remote-tracking branch 'origin/master' into next
...
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org >
Conflicts:
make.sh
2016-02-17 19:47:50 +01:00
Arne Fitzenreiter
1ffbca6e4f
glibc: disable patches that break build on arm.
...
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org >
2016-02-17 18:49:38 +01:00
Arne Fitzenreiter
bb330e25e9
glibc: new RHEL6 patches / fix CVE-2015-7547 and more
...
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org >
2016-02-17 12:46:11 +01:00
Arne Fitzenreiter
764a3f1ff2
toolchain: fix full toolchain crossbuild
...
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org >
2016-01-07 17:41:43 +01:00
Michael Tremer
9098b1e1c0
glibc: Fix headers to build with new GCC
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2015-12-22 12:40:38 +00:00
Michael Tremer
27957a3f2b
Merge remote-tracking branch 'ms/x86_64' into next
2015-09-11 15:06:09 +01:00
Michael Tremer
612c14d58b
glibc: Fix build with make version 4.0 and greater
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2015-08-22 17:22:16 +01:00
Michael Tremer
81aa971410
Allow building the toolchain for x86_64
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2015-08-22 12:25:49 +02:00
Michael Tremer
9eb008dc92
glibc: Import security fixes from upstream
...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2015-08-17 20:49:34 +01:00
Michael Tremer
30ca037fb3
glibc: Fix CVE-2013-7423 and CVE-2015-1781
...
CVE-2013-7423: Fix invalid file descriptor reuse while sending DNS query
CVE-2015-1781: Fix buffer overflow in gethostbyname_r with misaligned buffer
2015-04-27 21:20:46 +02:00
Michael Tremer
fe875de813
glibc: Backport hotfixes from RHEL
2015-01-27 22:01:24 +01:00
Michael Tremer
8acdb5225d
glibc: Fix build on x86
...
Some files that are patched for ARM are not available
on the x86 source tree. Hence the sed command should not
be executed.
2014-10-26 20:51:14 +01:00
Michael Tremer
541fb9a8a1
glibc: fix build with new patches.
2014-10-23 21:57:36 +02:00
Arne Fitzenreiter
3a317084d6
Revert "Revert "toolchain: Fix compiling due to Stack Protector changes.""
...
This reverts commit 4ec728f840 .
2014-10-22 13:49:54 +02:00
Michael Tremer
bd76bcb8b4
glibc: Import several fixes from RHEL.
...
Fixes #10611 , CVE-2014-5119 among other bug fixes.
2014-09-03 21:49:01 +02:00
Michael Tremer
4e3ce5438b
glibc: Install all known locales.
2014-04-01 16:24:50 +02:00
Michael Tremer
f2b22ab7b5
glibc: Backport hotfixes from RHEL6.
2014-02-15 19:40:08 +01:00
Arne Fitzenreiter
4ec728f840
Revert "toolchain: Fix compiling due to Stack Protector changes."
...
This reverts commit 1dbe439b83 .
2014-01-12 09:45:12 +01:00
Michael Tremer
1dbe439b83
toolchain: Fix compiling due to Stack Protector changes.
2014-01-04 17:08:47 +01:00
Michael Tremer
30a4e82787
glibc: Update patchset.
...
Import latest patches from RHEL6.
2013-10-12 16:03:05 +02:00
Michael Tremer
c1c60dbb73
tzdata: Update to 2012h.
2012-11-04 12:23:14 +01:00
Michael Tremer
847a72987e
glibc: Patch test-installation.pl to ignore libgcc_s.
2012-08-22 10:06:31 -04:00
Michael Tremer
c51823b2c4
glibc: Fix passing CFLAGS.
2012-08-15 18:40:52 +02:00
Michael Tremer
13b8798d78
glibc: Fix order of patches.
...
One patch only applied to the ports addon, which
is not available on i586.
2012-08-15 15:51:20 +02:00