From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by sourceware.org (Postfix) with ESMTPS id 25B653858030; Mon, 13 Dec 2021 13:22:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 25B653858030 Received: by mail-pg1-x52f.google.com with SMTP id q16so14531555pgq.10; Mon, 13 Dec 2021 05:22:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Rc2c1BerD9BoO5GWgm9lwj0CsvTqPo4TQO1hzFOAnOM=; b=2lEsrCBT9gPP2Sl9lkN0Qrvq7tl7GRKLVO4S+C3Hovyyiyu6AL7dmo5m5HbSdAzRhz LfX6izK7j1UmQCVcXzBzfTfREd1C1+jqZ0o9y+v25e8KofhN7EhuXXDGIDF7tV9Ugpgy yu1aJkOifDkxIXSpRtcPvjZhxVI6gsHP/GBTcZDIJ88aTQn1iziYgL/KYkpTbp66GUn2 PfNCsZzMmuTifgghWeAElZfoU47mKCrn0TIWowWKhVRg3Dozecfc5wZhb5Oyulkhi5w6 qZ6Vh2RIsi9oumOng7A7jsLXyVVkzT5pBkE0DBTaZtjzTNLrXHROXfxvW3asUUACH2RC g5ow== X-Gm-Message-State: AOAM530HylgTziDjkQtUtg/BT2igFoJaBnv34sSLxWzWlrzT3TYCD7KJ m796rxC42dK7PkfipjUvrmx56wx08TcYTAloe8WNtyEB X-Google-Smtp-Source: ABdhPJy16dTegiOIhwdCSfaHoZjv08YCas19U9M3EMyGVLif3QTAeq6Rw8UwHnRTQlojunvfGhRdwocpn9fUWScJZQ0= X-Received: by 2002:a65:5202:: with SMTP id o2mr51865592pgp.210.1639401761142; Mon, 13 Dec 2021 05:22:41 -0800 (PST) MIME-Version: 1.0 References: <20211207082638.1960585-1-siddhesh@sourceware.org> <20211213030233.2286715-1-siddhesh@sourceware.org> In-Reply-To: <20211213030233.2286715-1-siddhesh@sourceware.org> From: "H.J. Lu" Date: Mon, 13 Dec 2021 05:22:05 -0800 Message-ID: Subject: Re: [COMMITTED] Replace --enable-static-pie with --disable-default-pie To: Siddhesh Poyarekar Cc: GNU C Library Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3023.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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: Mon, 13 Dec 2021 13:22:43 -0000 On Sun, Dec 12, 2021 at 7:03 PM Siddhesh Poyarekar via Libc-alpha wrote: > > Build glibc programs and tests as PIE by default and enable static-pie > automatically if the architecture and toolchain supports it. > > Also add a new configuration option --disable-default-pie to prevent > building programs as PIE. > > Only the following architectures now have PIE disabled by default > because they do not work at the moment. hppa, ia64, alpha and csky > don't work because the linker is unable to handle a pcrel relocation Please reference linker bugs here. > generated from PIE objects. The microblaze compiler is currently > failing with an ICE. GNU hurd tries to enable static-pie, which does > not work and hence fails. All these targets have default PIE disabled > at the moment and I have left it to the target maintainers to enable PIE > on their targets. > > build-many-glibcs runs clean for all targets. I also tested x86_64 on > Fedora and Ubuntu, to verify that the default build as well as > --disable-default-pie work as expected with both system toolchains. > > Signed-off-by: Siddhesh Poyarekar > Reviewed-by: Adhemerval Zanella -- H.J.