diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-06-09 05:29:16 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-11-05 15:30:02 -0700 |
commit | a586fe9c80f7cf2c9a5a6ccdbc572e7b5ec816b8 (patch) | |
tree | 7165d50f3990a06736c7e43187ac686372b0a1af /scripts/build-many-glibcs.py | |
parent | ea32ec354c65ddad11b82ca9d057010df13a9cea (diff) | |
download | glibc-a586fe9c80f7cf2c9a5a6ccdbc572e7b5ec816b8.zip glibc-a586fe9c80f7cf2c9a5a6ccdbc572e7b5ec816b8.tar.gz glibc-a586fe9c80f7cf2c9a5a6ccdbc572e7b5ec816b8.tar.bz2 |
Configure GCC with --enable-initfini-array [BZ #27945]
Starting from GCC 12, the .init_array and .fini_array sections are enabled
unconditionally by
commit 13a39886940331149173b25d6ebde0850668d8b9
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Jun 8 16:09:24 2021 -0700
Always enable DT_INIT_ARRAY/DT_FINI_ARRAY on Linux
configure GCC with --enable-initfini-array to enable them when using GCC
release branches.
Fixes BZ #27945.
Diffstat (limited to 'scripts/build-many-glibcs.py')
-rwxr-xr-x | scripts/build-many-glibcs.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index 30b8abd..e8b9b21 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -1447,6 +1447,7 @@ class Config(object): # removed once glibc no longer supports building with older # GCC versions). cfg_opts = list(self.gcc_cfg) + cfg_opts += ['--enable-initfini-array'] cfg_opts += ['--disable-libssp', '--disable-libcilkrts'] host_libs = self.ctx.host_libraries_installdir cfg_opts += ['--with-gmp=%s' % host_libs, |