From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 01F57384780F for ; Wed, 9 Jun 2021 16:07:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 01F57384780F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: PMInZIge17targkd9sBxgeZVpRVLYL5B0Ag5Sf2EnWGiQOKIFPx7cOsHALQAXCjwgPNeb0nA5t 3FMl2lGEP8CC+7Izin6T0dWXGqKQireRCvWVxhd5ApvttbK0GxPZZj8nSdUeSv2hdXKef3FOPN kBqiSNFg8ET4dkQPOkdUKUEjAYv0AuImMVRADN0b5aPkto4eeAbPOJEi7AU25XMhztQjZUM65v y11EHb1Ahz0SeYhu7Nrvx2SY7b/ogiWfT24C8s0z0v0goH8SQTf/GuU15rFPRVITdc+LCm89aT M5s= X-IronPort-AV: E=Sophos;i="5.83,261,1616486400"; d="scan'208";a="62193088" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 09 Jun 2021 08:07:35 -0800 IronPort-SDR: 3XdB75em1xLwuG2gAimYKBwr/W23so5Kgxen7hj1oum3OsDegL4cNGMQxvkJgAAAB3kbneUiMX bEQyqaB0gqLxsGz40rpamzy9mttBnqXWmZHk1OE1syloAnvdWOgCnEaIsRQbxGWDnDF7quEI/K R7kkRQHQKND6duUtFgkzWwo9GA0nhxW1wWBQFzmj2JK4usnbO2WgDtcqqGRQIabFrvIWil77An UPpEuTzY/xU1SQB/wEeyZfPdJN2xE4rEV2DIUsWBpSW5iD2Qb05KTQ3StanxbPSH3QykYPKnEn Qow= Date: Wed, 9 Jun 2021 16:07:30 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: "H.J. Lu" CC: Subject: Re: [PATCH] Configure GCC with --enable-initfini-array [BZ #27945] In-Reply-To: <20210609122916.3884385-1-hjl.tools@gmail.com> Message-ID: References: <20210609122916.3884385-1-hjl.tools@gmail.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-07.mgc.mentorg.com (139.181.222.7) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3120.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2021 16:07:37 -0000 On Wed, 9 Jun 2021, H.J. Lu via Libc-alpha wrote: > Starting from GCC 12, the .init_array and .fini_array sections are enabled > unconditionally by > > commit 13a39886940331149173b25d6ebde0850668d8b9 > Author: H.J. Lu > 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. The point of build-many-glibcs.py isn't to build a glibc that's in some sense optimal. This option isn't needed to get glibc to build, and it doesn't add to the diversity of configurations covered by build-many-glibcs.py (actually, it reduces that diversity by making the configurations built with older GCC versions more similar to those built with GCC 12). So I don't see adding this GCC configure option as within scope for build-many-glibcs.py. -- Joseph S. Myers joseph@codesourcery.com