From patchwork Wed Jan 20 15:30:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 41773 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AC0FB385702F; Wed, 20 Jan 2021 15:31:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC0FB385702F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1611156667; bh=lyoy/hecWiEiW/NnaCS/6FNt8KU+CCmHQtkbB6P8lfA=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Q95oDoXJoFBQh1eWd/QFlJ3lKEc770TfklPwrAntlhPwFfCS1qU536I4FdbOVKZtU s6hg14cOS7Zoo0ModQJuRGKOBD/44sawacX7gDbg/Zuwg3hQlx9KsBbzpkdQfTpFnr yNt2ZFXlM+yntWNT2AdkhI4sumB5OtEbvXdx+Y5U= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70080.outbound.protection.outlook.com [40.107.7.80]) by sourceware.org (Postfix) with ESMTPS id E3B23396EC34 for ; Wed, 20 Jan 2021 15:31:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E3B23396EC34 Received: from AM6P192CA0046.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:82::23) by AM0PR08MB5267.eurprd08.prod.outlook.com (2603:10a6:208:158::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9; Wed, 20 Jan 2021 15:31:01 +0000 Received: from VE1EUR03FT048.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:82:cafe::10) by AM6P192CA0046.outlook.office365.com (2603:10a6:209:82::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11 via Frontend Transport; Wed, 20 Jan 2021 15:31:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; sourceware.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;sourceware.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT048.mail.protection.outlook.com (10.152.19.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11 via Frontend Transport; Wed, 20 Jan 2021 15:31:01 +0000 Received: ("Tessian outbound 587c3d093005:v71"); Wed, 20 Jan 2021 15:31:01 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 6c86b1463e22563a X-CR-MTA-TID: 64aa7808 Received: from cd52daf1b77e.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 454EC2E8-CB0D-42AC-B8BC-59E0F59B8DFB.1; Wed, 20 Jan 2021 15:30:55 +0000 Received: from EUR02-AM5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id cd52daf1b77e.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 20 Jan 2021 15:30:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JegYOrQgnDB2zYvpWN/T0UrqoG1glirJc/qnEaBdBr1o3902HOh9YAFemwdI1MNotLgpGLioe115g2NO5g7I0xCdTv26mf82G0oFMck8V+FenYXZ6Rsx1/2AzgmxwrNXHv21VtffT0+A8UIGHh8NRybxh8CY2fIycgMAFpEDxY1rbaFezm3JQgneKoglhponR9Qi+vCOU2OWDzehr7v52kcvQlBwXXhtY194CFuqMKvtulQ0HIIqqeEzdLvTQRQociEmbL2V0pCLksl+ltX7xlnrejnawotrAz2ILY6F7sUImI2aAfl4P2hkv+duQ9MYs9HJhHDbqirVPpRNK8PtLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lyoy/hecWiEiW/NnaCS/6FNt8KU+CCmHQtkbB6P8lfA=; b=SCtHaQMllgfTwfbLepRT8cCSg3Tct3omeYlX/glFp97neg5P2HCPxEjwZjAHwR145Q2Skb+clXAQ9UDG5WoKY6trIC/bVMrWwP8Gx305Ej2jZgkcXAfHUCLrsl5XN/RMjrcuMFfdLNpqnd/l3Y/yFUWFf684KXfQuWbkwuU4psr2WzWGz1yaUTbHCW/nqyHeTZxEY7pNIyCHDROG/OEyH3bJfiH0l9qWZELy+974t1BRdnyrhM4qysAY7nLZtIH80oL1RXVIHICd7qoAfKiIUiZWc4djgVXS4xPeFyJcRb/kAI2eU9aagsRG+rkHELMKA9HciWQeYUYOhJ/DO4dinw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=arm.com; Received: from PA4PR08MB6320.eurprd08.prod.outlook.com (2603:10a6:102:e5::9) by PR3PR08MB5577.eurprd08.prod.outlook.com (2603:10a6:102:81::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Wed, 20 Jan 2021 15:30:54 +0000 Received: from PA4PR08MB6320.eurprd08.prod.outlook.com ([fe80::700f:ddbe:a347:ee4f]) by PA4PR08MB6320.eurprd08.prod.outlook.com ([fe80::700f:ddbe:a347:ee4f%7]) with mapi id 15.20.3763.014; Wed, 20 Jan 2021 15:30:54 +0000 To: libc-alpha@sourceware.org Subject: [PATCH v5 3/7] configure: Check for static PIE support Date: Wed, 20 Jan 2021 15:30:48 +0000 Message-Id: <51119c6aa5f2a7ff0966d5c9fda4a61d781591fb.1611155254.git.szabolcs.nagy@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-Originating-IP: [217.140.106.51] X-ClientProxiedBy: LO2P265CA0207.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9e::27) To PA4PR08MB6320.eurprd08.prod.outlook.com (2603:10a6:102:e5::9) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (217.140.106.51) by LO2P265CA0207.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9e::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.12 via Frontend Transport; Wed, 20 Jan 2021 15:30:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: bb23b38b-16d1-48be-9e7a-08d8bd586472 X-MS-TrafficTypeDiagnostic: PR3PR08MB5577:|AM0PR08MB5267: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:2803;OLM:2803; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: JgMPyuAQh91v3n7au0GEyDFGgAYEDIO+1+FXVg/0jIpE46fZbNKKyprSwFpG5v4C84NKM4Nw3Q+JeQdr6sfACNn+bfuyj0DMbtJYpmRfzlK2G6SGi3dRht6TAnubemu8aw6DiFdazzvPTrEOS0hpNHfRRZ7EMgzybCeSUV3o+SlSfgh5OwKjUT45RxnAvB89ELXBzNzRo/QplFcHW43yG18keyXhRc0I7Sv5W9k9VwR6srl9izaCGOi4mkM38AUxQBT1BF2nN+UwS/AnIxhsVPkBthB24tsHGykqrEI8o2fj8aojC2PN/vDcF5Sa24dBYpLKmW589wu8AN7QBV0t9lvSMpPHDeIfmo2JZzLqqLTyiyPztitY/IBmIf1PkcdvL8GhWiVIF5wPVcIrIwXFBoYwuwkQgY8rvUP/wWaZXxvmmctVTgp/jAVMi8QOVRMJMnqEScBGtYRpVo9vEMIYuQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PA4PR08MB6320.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(376002)(396003)(39860400002)(366004)(66476007)(2906002)(316002)(52116002)(6666004)(186003)(16526019)(66556008)(83380400001)(36756003)(86362001)(6486002)(2616005)(478600001)(26005)(44832011)(8936002)(6512007)(6916009)(66946007)(69590400011)(956004)(8676002)(5660300002)(6506007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: KN27fMMblbN4ym0u3S/2wQEZbuwxnj8m7PIBv86IkKcvaKB+n88nzuVkOcO5IUShqV8o58wjKRN+JSEHguk1HY4p9JLA4I2FW2U1ZtOcp0UNk0IgAOSLPV93KyU+gRrzk2eSOMGy0lJYM9ssnjFgenHZGWNZ9URgrtjFqub9xmYYXBmeMtAxgySm8vQUgLWMAm68k7EoE31I2U1VdHSG3sZ9W3Bids+naKB9N8ss7YC7drjL7n/bk3zzsNNY5u4rg+84+7T1hpyfAn7JaEF5H39vxXJK7SnQmtVdIqvlvGXB0Dn0R7JASV7VSG6vOUrmiQnqb+PJehC7LbdMfhxURxAXAmpSNKjuguFhpLq2y0EXGzyb4zYohpv7Sj0VtrE5ksaSG14yXE7wPPm0z6XtBeuFpkUKL5ER/T5kSp/dIjDRZ+5LfWdpsXlN7jpc7X04nTr672Cc9Xhnv5CqWwfWn8lr2pEJsS5yemaw6KmQE/2TSFIEJbcnu4SlZhc3zenyy97B3S+SsryN5jTrWNse29DumWxBs9R+8sDgveR8UG1gaRUOnkkDRE9Mrh6h9XznaF6WoSmr4xoVXwuATJ9HYjI1HrytdeeYSVWYBb7RdR+5PgiDfKSEp98tN9wehTnBAkRI+ZNqpkw4xCj/SLQxIBIkhQIBvZJ2H+SYMbAVp5FIxb9hi+eNo6NQ0bQ9m+VH5I1HwWcK8MWiBWq9H9+loehc/IAcRykxsztE77hE6HlE/m2lhsnYAhwQMC6VyjlZqocbO8H2x9sIb/UlspNU1bLzWxeAPqcchx+A/W2kuUdCUbuloMfFyE6pfT24HxGusrTIiI/V6kh6GCyGV8zexuGGEMYRiQi4IXUmZEa96swzm7wuoXiFXoXWfYTbyi/Hymp1fnLLgsIlkpgDklVQPJ9m6E1GB27is/a2UC+9GfHFZq0/GYzh/0bKpA6bj0bfjjns+Sxidl5RYrw/VAHdZSqCyvWOBUSF8TDPeN+RME/jFgE5QHJlpl1sumJIDecD X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5577 Original-Authentication-Results: sourceware.org; dkim=none (message not signed) header.d=none; sourceware.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 5a602754-9a1e-4757-524b-08d8bd586053 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Iv3uY6LAlVCoIkxnmSPQeaEhZlGMZjCDyRrTF1zRRzUuH2q6MVOS7GHjj4WleD1VmKVxOEJqC2MnAL8aZTgowjw4B99f2/sybyAg8+Elgtxw8vXtdcjYHhc6+a8NVKLALhxU/kw9S3cyocVUNpz03v5DkeD0Sn3JDbHiAKczJJyv26tVAHXKL1l6wyiNAYGZ5xR79Lz10Qs8+1bxcPd2qQiWEv/abqIE6m5zmhGVy+9QJidw1aDhVQyoZSz1YkKsPZ5ztrIYNqK5/FV8VSgs9xeoHIWQgkZMhjXsFc+wJTukdVoBsH1yV7OeIXjnmU3TX5KFAryuUq8qftQt/0iLjNojK416237o061tKQbf5L0nn8fOaOG5ERjZp2TkcvYlomkVEA7o+Rkvfj5op/MXHoYgDAAbvON5SKyY+0ogI0MtEXGeuuLMOYFn6L9j3C1TcMBl0yA6jCDSHghWQOAGQn6+Xcu8TU0EXbSO0jPYiDIAZEULX92pxn/B/bSJZnIDDztVr0N0DTUpi8xTzZ/fs3s/dfE1fFe0iSxlm5VRHK00nibZoi6cP9urqj49rs2Z8bhfwBmuS1k2+pz9zj3dLnWAWqp3jDHFNGaFWseJPKhbvjJ0Lpfd6wXMox8Co+At X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(39860400002)(346002)(396003)(136003)(376002)(46966006)(83380400001)(6506007)(26005)(81166007)(6666004)(82740400003)(6916009)(8936002)(70206006)(47076005)(316002)(8676002)(44832011)(82310400003)(356005)(6512007)(36756003)(186003)(69590400011)(6486002)(16526019)(336012)(478600001)(70586007)(2906002)(5660300002)(2616005)(86362001)(956004); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2021 15:31:01.1640 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bb23b38b-16d1-48be-9e7a-08d8bd586472 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5267 X-Spam-Status: No, score=-14.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham 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-Patchwork-Original-From: Szabolcs Nagy via Libc-alpha From: Szabolcs Nagy Reply-To: Szabolcs Nagy Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Add SUPPORT_STATIC_PIE that targets can define if they support static PIE. This requires PI_STATIC_AND_HIDDEN support and various linker features as described in commit 9d7a3741c9e59eba87fb3ca6b9f979befce07826 Add --enable-static-pie configure option to build static PIE [BZ #19574] Currently defined on x86_64, i386 and aarch64 where static PIE is known to work. Reviewed-by: Adhemerval Zanella --- config.h.in | 3 +++ configure | 13 +++++++++++++ configure.ac | 4 ++++ sysdeps/aarch64/configure | 4 ++++ sysdeps/aarch64/configure.ac | 3 +++ sysdeps/i386/configure | 3 +++ sysdeps/i386/configure.ac | 3 +++ sysdeps/x86_64/configure | 3 +++ sysdeps/x86_64/configure.ac | 3 +++ 9 files changed, 39 insertions(+) diff --git a/config.h.in b/config.h.in index 947feeff36..06ee8ae26a 100644 --- a/config.h.in +++ b/config.h.in @@ -259,6 +259,9 @@ /* Build glibc with tunables support. */ #define HAVE_TUNABLES 0 +/* Define if static PIE is supported. */ +#undef SUPPORT_STATIC_PIE + /* Define if static PIE is enabled. */ #define ENABLE_STATIC_PIE 0 diff --git a/configure b/configure index 49f7b32b52..1dc3af60b4 100755 --- a/configure +++ b/configure @@ -6814,6 +6814,19 @@ libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory` if test "$static_pie" = yes; then + # Check target support for static PIE + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef SUPPORT_STATIC_PIE +# error static PIE is not supported +#endif +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + as_fn_error $? "the architecture does not support static PIE" "$LINENO" 5 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # The linker must support --no-dynamic-linker. if test "$libc_cv_no_dynamic_linker" != yes; then as_fn_error $? "linker support for --no-dynamic-linker needed" "$LINENO" 5 diff --git a/configure.ac b/configure.ac index 341d4eeac2..dfebb8a7cc 100644 --- a/configure.ac +++ b/configure.ac @@ -1831,6 +1831,10 @@ libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory` AC_SUBST(libc_cv_multidir) if test "$static_pie" = yes; then + # Check target support for static PIE + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#ifndef SUPPORT_STATIC_PIE +# error static PIE is not supported +#endif]])], , AC_MSG_ERROR([the architecture does not support static PIE])) # The linker must support --no-dynamic-linker. if test "$libc_cv_no_dynamic_linker" != yes; then AC_MSG_ERROR([linker support for --no-dynamic-linker needed]) diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure index 5f5f3cc44c..83c3a23e44 100644 --- a/sysdeps/aarch64/configure +++ b/sysdeps/aarch64/configure @@ -6,6 +6,10 @@ $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h +# Static PIE is supported. +$as_echo "#define SUPPORT_STATIC_PIE 1" >>confdefs.h + + # We check to see if the compiler and flags are # selecting the big endian ABI and if they are then # we set libc_cv_aarch64_be to yes which causes diff --git a/sysdeps/aarch64/configure.ac b/sysdeps/aarch64/configure.ac index 180a16a29f..66f755078a 100644 --- a/sysdeps/aarch64/configure.ac +++ b/sysdeps/aarch64/configure.ac @@ -5,6 +5,9 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. # The exception is -mcmodel=large which is unsupported with PIC/PIE. AC_DEFINE(PI_STATIC_AND_HIDDEN) +# Static PIE is supported. +AC_DEFINE(SUPPORT_STATIC_PIE) + # We check to see if the compiler and flags are # selecting the big endian ABI and if they are then # we set libc_cv_aarch64_be to yes which causes diff --git a/sysdeps/i386/configure b/sysdeps/i386/configure index 90c63caf35..bb482ca16c 100644 --- a/sysdeps/i386/configure +++ b/sysdeps/i386/configure @@ -117,3 +117,6 @@ if test x"$multi_arch" != xno; then $as_echo "#define NO_HIDDEN_EXTERN_FUNC_IN_PIE 1" >>confdefs.h fi + +$as_echo "#define SUPPORT_STATIC_PIE 1" >>confdefs.h + diff --git a/sysdeps/i386/configure.ac b/sysdeps/i386/configure.ac index 6d2068d2b3..5e43eb0adf 100644 --- a/sysdeps/i386/configure.ac +++ b/sysdeps/i386/configure.ac @@ -77,3 +77,6 @@ dnl via PIC PLT in PIE, which requires setting up EBX register. if test x"$multi_arch" != xno; then AC_DEFINE(NO_HIDDEN_EXTERN_FUNC_IN_PIE) fi + +dnl Static PIE is supported. +AC_DEFINE(SUPPORT_STATIC_PIE) diff --git a/sysdeps/x86_64/configure b/sysdeps/x86_64/configure index 84f82c2406..198554d788 100644 --- a/sysdeps/x86_64/configure +++ b/sysdeps/x86_64/configure @@ -143,5 +143,8 @@ fi $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h +$as_echo "#define SUPPORT_STATIC_PIE 1" >>confdefs.h + + test -n "$critic_missing" && as_fn_error $? " *** $critic_missing" "$LINENO" 5 diff --git a/sysdeps/x86_64/configure.ac b/sysdeps/x86_64/configure.ac index cdaba0c075..ec776274af 100644 --- a/sysdeps/x86_64/configure.ac +++ b/sysdeps/x86_64/configure.ac @@ -82,5 +82,8 @@ dnl It is always possible to access static and hidden symbols in an dnl position independent way. AC_DEFINE(PI_STATIC_AND_HIDDEN) +dnl Static PIE is supported. +AC_DEFINE(SUPPORT_STATIC_PIE) + test -n "$critic_missing" && AC_MSG_ERROR([ *** $critic_missing])