public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Configure GCC with --enable-initfini-array [BZ #27945]
@ 2021-06-09 12:29 H.J. Lu
  2021-06-09 16:07 ` Joseph Myers
  0 siblings, 1 reply; 12+ messages in thread
From: H.J. Lu @ 2021-06-09 12:29 UTC (permalink / raw)
  To: libc-alpha

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.
---
 scripts/build-many-glibcs.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index 4a4b91abda..5ce86c96d0 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -1437,6 +1437,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,
-- 
2.31.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-11-08 15:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 12:29 [PATCH] Configure GCC with --enable-initfini-array [BZ #27945] H.J. Lu
2021-06-09 16:07 ` Joseph Myers
2021-06-09 17:46   ` H.J. Lu
2021-06-09 18:02     ` Joseph Myers
2021-06-09 18:13       ` Adhemerval Zanella
2021-06-09 19:01         ` H.J. Lu
2021-06-09 20:52           ` Joseph Myers
2021-06-09 20:44         ` Joseph Myers
2021-11-05 19:45           ` Adhemerval Zanella
2021-11-05 22:09             ` H.J. Lu
2021-11-08 15:01               ` Joseph Myers
2021-11-08 15:51                 ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).