Message ID | 9c7e869002d50d6d97e1655458b34c262fcc9c01.1610986541.git.szabolcs.nagy@arm.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=DoPEkhzl; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DKHCc1sjrz9sSs for <incoming@patchwork.ozlabs.org>; Tue, 19 Jan 2021 03:23:40 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 16CFD38708E4; Mon, 18 Jan 2021 16:23:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 16CFD38708E4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1610987018; bh=ZMVkXXVdEGijnILf4M3bmD1FrXqiTGw+DyU8l1lh43A=; 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=DoPEkhzlgDDSKiQN+z+iqG+y9gKaAYIYZ6R3U3BwVPOMvE53kQJiz4q0ahWEC50l/ x96hFcekZh1O4jCnhc7iTK9DR19oFogq9Opyo4FQuYkREcxTczM0MvV36ilZe9+xbn 0adtaBWZux37gj2GvTUA0RXz29xIogWt8y4Le1aU= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04hn0222.outbound.protection.outlook.com [52.100.18.222]) by sourceware.org (Postfix) with ESMTPS id E5056384640E for <libc-alpha@sourceware.org>; Mon, 18 Jan 2021 16:23:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E5056384640E Received: from AS8PR04CA0251.eurprd04.prod.outlook.com (2603:10a6:20b:330::16) by AM6PR08MB3639.eurprd08.prod.outlook.com (2603:10a6:20b:51::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10; Mon, 18 Jan 2021 16:23:23 +0000 Received: from AM5EUR03FT052.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:330:cafe::6e) by AS8PR04CA0251.outlook.office365.com (2603:10a6:20b:330::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10 via Frontend Transport; Mon, 18 Jan 2021 16:23:23 +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 AM5EUR03FT052.mail.protection.outlook.com (10.152.17.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.12 via Frontend Transport; Mon, 18 Jan 2021 16:23:23 +0000 Received: ("Tessian outbound e989e14f9207:v71"); Mon, 18 Jan 2021 16:23:22 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 48b71004867e5306 X-CR-MTA-TID: 64aa7808 Received: from daf43ba67b97.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 8A862D6F-E060-4232-B167-A8DEF79215EB.1; Mon, 18 Jan 2021 16:23:13 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id daf43ba67b97.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 18 Jan 2021 16:23:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XdyQnu2GO+HHxSX5uE754IgUi8bF4hGhklbpOfuDfn+Xtz3GOI5i7Kjtz6W9v4c8PNhU34F+JwqgEGyzEvVHnffUYwXzjdk/3n3FSJW+ACb2T9IEJeZYX8ExKS9+4wLceTLbWqx6eWnY5f6Ww++ssRGlEKQnjfmqwa9imyGPGHJA0MgsvqdIP0XwkSSFjo9TK4v/+odiaQcC8mRqg5MaCzJWX3CfvGI3SwBE2c+kypTF77MsTYaK4hUL+HAt+qBvvXcuLmPcSEU0YZJWpA3CzTnyFzS/vJ950q5uuBGkEdjgmA112BS3qZ1Nj37S0vc4srqZRBO4M0ePIkl/qr+Mzg== 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=ZMVkXXVdEGijnILf4M3bmD1FrXqiTGw+DyU8l1lh43A=; b=LBoEzU/eCgm6LqnL2BnHIE5t7aJhCVVO0rZ594n37ms2b3pv0rzRlMh0bmJ3SqGImvf+diPEF7cDU/irS4p9AiIl0uorvCnNffzdquky+/3MkkoBEsRv1NvLY6a7Auae/eCohmTC1EFRB0CQ9gXEw7eqtrzaOrm4bqZ7rrajQkj0TPlTrBPpMPXgfIztBY7LqOP9+LqTV+0nM8buS71pKM5ZBeOA3N5cSkAGWHiAX1gXuSbfaXNb5XupFcjwEPzjoJRD373NHcSho5CLp4gCHPAi6/8qk5eZEPIYeZVOdFKdBtFYBi1JtHUoYDTTbqik8fAaNDLubVCymjImJmFzqQ== 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 PA4PR08MB6238.eurprd08.prod.outlook.com (2603:10a6:102:e8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Mon, 18 Jan 2021 16:23:12 +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; Mon, 18 Jan 2021 16:23:12 +0000 To: libc-alpha@sourceware.org Subject: [PATCH v4 01/10] configure: Require PI_STATIC_AND_HIDDEN for static pie Date: Mon, 18 Jan 2021 16:23:00 +0000 Message-Id: <9c7e869002d50d6d97e1655458b34c262fcc9c01.1610986541.git.szabolcs.nagy@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <cover.1610986541.git.szabolcs.nagy@arm.com> References: <cover.1610986541.git.szabolcs.nagy@arm.com> Content-Type: text/plain X-Originating-IP: [217.140.106.54] X-ClientProxiedBy: SA0PR11CA0001.namprd11.prod.outlook.com (2603:10b6:806:d3::6) 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.54) by SA0PR11CA0001.namprd11.prod.outlook.com (2603:10b6:806:d3::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9 via Frontend Transport; Mon, 18 Jan 2021 16:23:11 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f9927a4a-c041-4103-b95c-08d8bbcd6054 X-MS-TrafficTypeDiagnostic: PA4PR08MB6238:|AM6PR08MB3639: X-Microsoft-Antispam-PRVS: <AM6PR08MB36395C2E5F43A2988FC81CADEDA40@AM6PR08MB3639.eurprd08.prod.outlook.com> x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:8273;OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: nurrMAttpyVshSbFKRfEuf12npKfK/ESFRycLVGoF9arc3xgr24RKk+iA07mFLrZ8czGid5+fHtQDTv8tMG94rIzuQkmJUOPuOAJ/dGo5uslCM3ju4AfEDRJXyYfXLL2EANp/KXw7VQbz4h9xOtInHmGOIbG/sh8W10vor/isQdSV/1wqMxDQkpTuT2qO45ambpMMO0adDF/UzwufmlR4xMx06QTRDzKNQjcgWktip/nvJnNaWnUgtnjlqROYOBd25FHLBT5eHFEg1YnVqHQWIxkapjUzX2SKLqZnmGMEDILi0PhXjfWHeDb48NWTNHRYmOc1+iGOSdltS2HOILPgrqfN7uAhzxydxJh3oM7EYJ6rIFleNx5Sm8b2r3JUlk8QKhcn8iNAFZq1qt5wK27NybiXmZ2OpfEjnpZTrTQbmOx5xjeqeXkZHXqyBJzgaFcBF3UZhxRH6WsiSSGRVuuclqqvJFf/aolGbpxJjiAZ0wSNrUj4LZ1W1jg3BxR2RirusmCL/WIGq5hhBJIfPEjm/bsq/EAoTgaciWO2x8fQ1GoIDPlj6/R72O5yLAy2ebu3BuslTsAgAzUIFevcvuKQA== 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)(366004)(39850400004)(376002)(396003)(136003)(346002)(83380400001)(6486002)(8676002)(69590400011)(478600001)(6666004)(52116002)(6916009)(316002)(8936002)(66476007)(66556008)(66946007)(5660300002)(86362001)(16526019)(26005)(6512007)(2906002)(186003)(6506007)(956004)(2616005)(36756003)(44832011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: un2uygcnydi64GnSkCJ/RUzEJAdulT2dohudC5skrSPNTA+uHklY5H7zdDVyaWenFCEkDnw9fFh7bVkDa5PYz69AEzJbjidYRLlEG9O60hzm2O/xk9oOkORGF+kpAEdtpNp+8uFGOfC2VITAEo6xLnog7L4VfRFkO6Ggt27/NwotDo50m8U8euVftjE4l48VMSsObvnIbw35itaJT0cEIAKYNnuq846J8XpmORgypNJYbW1Rei8YUdgSNi3AshOEijtcIkoWmN90pO0sb6AueN16t+KHrUk7zBO6mP0XddGn52MgEGwS7z9e+h59/WPAITVcGJnPqbwvP35pgNNWyyWoopCQ2Ph1QR9j05A5v5rW+kpqNMW1AQwvcf2qaU+vno1WDEr73JTDNfVlj4CoTNxM6trjcWj2eF176TNpOtPQeTERFCouaVLHfkmj1zEaLEWDIQsUom0bAf/XnhCdxNgknSY3JjEiNw/1aUxU8cqDhBnbBYYXaeJexdDGQc5FEUyjJv5J57p/AACwjGn0PEZJDGQoixHdk95a7iaAn6jKH0gX9BZ+TzdHcrjgP9U0wsbEZXAXY7RF/Dd3VgFaFtEBzI/aTbTAhPckUJz3GrrUj1H+FADL+5FZsMTcQYwcbp8f3CYHuyOcc35VVtaqP+4T4B9jqsLUvhChLMf906Yk+ND0hnAGskd1jQmSGlkasiPKkSr6/RsY5Abvscn8MW0DDN8+6P+61GGWjGAkxV2WSHrdniOjs6L5wGp+b9wzqdnZ9GK4t6woEGUWSnkRXzSjrxmpgqvcf+2WeG1ZFMmYc/CuzfuyFZVvokwqqSlt9Xn0YHMd+2h+2GxpTfxH5J0gjQafYsqvp3MT4lF+1EKHN8cgtHXCC3eCwEPynejGx/Tvro1S5hWJ/VcyLb5UHgQB8U2yHuvRok5fFF83ALfMXSemrU7Ng1mMmNGVEWIGtH91e7eAdTB56lQVXFMY3PgfL4nLP2LeNZEGB1sp5ofnHmQCj3weYGf4tjZUJzOD X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6238 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: AM5EUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: a7e2f5f4-df6a-4a59-47b4-08d8bbcd5992 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mCyd/+9KI2IEK1PQKqAg29i7FWkvGDxyh5Q7IVlgm6kNzRPaYhg4xfXV6zLvEdYJZVaKEVbtuzmF8FjRrfj1DjW3VhZrVFi92Q8ZkDLgSCzbWS9Vla7j+pRTnZzh+VaYKpkFFre6x9ykayvSEw0BLlsx6PjDNrakVQukC/Vwyt1+7DbHRut4uImLPu6ssK83gx7Jiu6m8Faom3krhL9sohKNslHA/JLt93HtXPHxP6HBXKPb+NdanTDTiDfJm0RyXc7n8sqzGQanPFK1sgURRj6ktfX7YFdk7fwqxcj05b77Air4Ys0xt3dSeRtkw5X6L0L+sRi/tD1D81Ixdme/XcAZssKu6SKjyt5FNv1VZQzz/32wc+Qt0zkRfQIUwz/Qtt8fInZnnecDIOdrboOxp3xIBS0UQ7gAdmfKzDnDHcNxMXfz+KbncPYtY/PqnjFPWSOMusH27xFo67MGxxlYNv2SJx4+XoM26OqaRaWdjYAL+KVTL47Op0zHxVyu0Qu0 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)(376002)(39850400004)(136003)(396003)(346002)(46966006)(336012)(81166007)(6486002)(8676002)(16526019)(956004)(316002)(6666004)(69590400011)(82740400003)(356005)(82310400003)(6506007)(6512007)(47076005)(186003)(2906002)(26005)(44832011)(70206006)(34010700045)(83380400001)(6916009)(8936002)(2616005)(5660300002)(70586007)(36756003)(86362001)(478600001); DIR:OUT; SFP:1501; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2021 16:23:23.1220 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f9927a4a-c041-4103-b95c-08d8bbcd6054 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: AM5EUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3639 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 <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Szabolcs Nagy via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Szabolcs Nagy <szabolcs.nagy@arm.com> Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces@sourceware.org> |
Series |
fix ifunc with static pie [BZ #27072]
|
expand
|
diff --git a/configure b/configure index 49f7b32b52..dfadfdf84d 100755 --- a/configure +++ b/configure @@ -6818,6 +6818,20 @@ if test "$static_pie" = yes; then if test "$libc_cv_no_dynamic_linker" != yes; then as_fn_error $? "linker support for --no-dynamic-linker needed" "$LINENO" 5 fi + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef PI_STATIC_AND_HIDDEN +# error static pie depends on PI_STATIC_AND_HIDDEN +#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 + # Default to PIE. libc_cv_pie_default=yes $as_echo "#define ENABLE_STATIC_PIE 1" >>confdefs.h diff --git a/configure.ac b/configure.ac index 341d4eeac2..702c98706b 100644 --- a/configure.ac +++ b/configure.ac @@ -1835,6 +1835,11 @@ if test "$static_pie" = yes; then if test "$libc_cv_no_dynamic_linker" != yes; then AC_MSG_ERROR([linker support for --no-dynamic-linker needed]) fi + + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#ifndef PI_STATIC_AND_HIDDEN +# error static pie depends on PI_STATIC_AND_HIDDEN +#endif]])], , AC_MSG_ERROR([the architecture does not support static pie])) + # Default to PIE. libc_cv_pie_default=yes AC_DEFINE(ENABLE_STATIC_PIE)
The glibc static pie self relocation code relies on that local symbols can be accessed without dynamic relocations in position independent code. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> --- configure | 14 ++++++++++++++ configure.ac | 5 +++++ 2 files changed, 19 insertions(+)