From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2191) id 5C3DD3858D37; Mon, 29 Aug 2022 13:05:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C3DD3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1661778351; bh=e5m3ISoBK1cOZeRn60bwBMlAT960lv33O57bo83gTJc=; h=From:To:Subject:Date:From; b=adugV+VRzrj8iMolAdhSJh4zuwWy1OxpsOazrCcYMK0dx+icWan58OJVDQpoOTjLg YzZ4edHYeIHDpl975xJpJFwpcVr+DVKzM+pFkVx7uDuyppqONDPmrB3TUGycaiTgHI SMtdz56ggosB0XKN6VVkhajoo5oqJ6V0yA57PRyw= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Carlos O'Donell To: glibc-cvs@sourceware.org Subject: [glibc] Makeconfig: Set pie-ccflag to -fPIE by default [BZ# 29514] X-Act-Checkin: glibc X-Git-Author: Richard Henderson X-Git-Refname: refs/heads/master X-Git-Oldrev: 063f7462dac26487e38b126afcf80dad77da444c X-Git-Newrev: 51231c469b49fb3837590f40a93f88db9a20bb86 Message-Id: <20220829130551.5C3DD3858D37@sourceware.org> Date: Mon, 29 Aug 2022 13:05:51 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=51231c469b49fb3837590f40a93f88db9a20bb86 commit 51231c469b49fb3837590f40a93f88db9a20bb86 Author: Richard Henderson Date: Tue Aug 23 13:49:23 2022 -0700 Makeconfig: Set pie-ccflag to -fPIE by default [BZ# 29514] We should default to the larger code model, in order to support larger applications built with -static -pie. This should be consistent with pic-ccflag, which defaults to -fPIC. Remove the now redundant override from sysdeps/sparc/Makefile. Note that -fno-pie and -fno-PIE have the same effect. Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell Diff: --- Makeconfig | 2 +- sysdeps/sparc/Makefile | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Makeconfig b/Makeconfig index e78cf220af..f8164a0025 100644 --- a/Makeconfig +++ b/Makeconfig @@ -1052,7 +1052,7 @@ pic-ccflag = -fPIC PIC-ccflag = -fPIC endif # This can be changed by a sysdep makefile -pie-ccflag = -fpie +pie-ccflag = -fPIE no-pie-ccflag = -fno-pie # This one should always stay like this unless there is a very good reason. PIE-ccflag = -fPIE diff --git a/sysdeps/sparc/Makefile b/sysdeps/sparc/Makefile index 12c2c1b085..26b4a84606 100644 --- a/sysdeps/sparc/Makefile +++ b/sysdeps/sparc/Makefile @@ -1,9 +1,6 @@ # The Sparc `long double' is a distinct type we support. long-double-fcts = yes -pie-ccflag = -fPIE -no-pie-ccflag = -fno-PIE - ifeq ($(subdir),gmon) sysdep_routines += sparc-mcount endif