From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTPS id 36437385BF9B for ; Tue, 16 Nov 2021 13:58:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 36437385BF9B Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-563-uePPFZLbPJ2YMuHd3mvmtQ-1; Tue, 16 Nov 2021 08:58:52 -0500 X-MC-Unique: uePPFZLbPJ2YMuHd3mvmtQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C1BB1100C661; Tue, 16 Nov 2021 13:58:51 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.194.81]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A123C60D30; Tue, 16 Nov 2021 13:58:50 +0000 (UTC) From: Florian Weimer To: Siddhesh Poyarekar Cc: libc-alpha@sourceware.org, carlos@redhat.com Subject: Re: [PATCH] New option --enable-pie-programs References: <20211116135240.3092651-1-siddhesh@sourceware.org> Date: Tue, 16 Nov 2021 14:58:48 +0100 In-Reply-To: <20211116135240.3092651-1-siddhesh@sourceware.org> (Siddhesh Poyarekar's message of "Tue, 16 Nov 2021 19:22:40 +0530") Message-ID: <87czn0cicn.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=unavailable autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Tue, 16 Nov 2021 13:58:57 -0000 * Siddhesh Poyarekar: > Add a new option --enable-pie-programs to build tests and binaries as > PIE. This allows building all dynamic programs in glibc (e.g. > iconvconfig, getconf, etc.) as PIE on architectures that do not have > -static-pie. Please integrate this in some way with libc_cv_cc_pie_default and libc_cv_pie_default. Probably --enable-pie-programs should default to yes if the toolchain defauls to PIE. Thanks, Florian