From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2051.outbound.protection.outlook.com [40.107.21.51]) by sourceware.org (Postfix) with ESMTPS id 405DA385DC01; Wed, 1 Apr 2020 10:10:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 405DA385DC01 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Szabolcs.Nagy@arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iMjw5+ghzuNqoeDG0jNTvhX+NDGY7sIKVhcrOeouA6c=; b=e28B9YxCSPHGaxffOWOhZZhZHSjYSFIcjYImJJa+Rvu5IX8NRfVFcSXvswWXrmK8McghNw6Lvc6SzqE3F8koHVTtt1xuKIwuSNlClPaorU4U2D2O4OUK8rNIeEm7+H8wJgr/P7mEtpysnOqleI5xwJsjjlr4HRXFgD0BNB7EwY8= Received: from AM6PR08CA0015.eurprd08.prod.outlook.com (2603:10a6:20b:b2::27) by DB6PR0802MB2231.eurprd08.prod.outlook.com (2603:10a6:4:84::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20; Wed, 1 Apr 2020 10:10:13 +0000 Received: from VE1EUR03FT015.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:b2:cafe::85) by AM6PR08CA0015.outlook.office365.com (2603:10a6:20b:b2::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20 via Frontend Transport; Wed, 1 Apr 2020 10:10:13 +0000 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=bestguesspass 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 VE1EUR03FT015.mail.protection.outlook.com (10.152.18.176) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17 via Frontend Transport; Wed, 1 Apr 2020 10:10:12 +0000 Received: ("Tessian outbound 4b84da486446:v50"); Wed, 01 Apr 2020 10:10:12 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e378eee647dfac01 X-CR-MTA-TID: 64aa7808 Received: from 5f1d0a84e4f7.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6F7CA6D2-BBC1-49FE-B194-FA324117E745.1; Wed, 01 Apr 2020 10:10:06 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5f1d0a84e4f7.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 01 Apr 2020 10:10:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z87vYzMsSOecPocUCsNe20SJyyco0MDonTGkPqOvz+TB/y0PKmen1MRoU1uUaJPoLVspqqepSh0FISxwVS5eQnadnNTfPU7RkWOyPRL5Dc4WYJpgpSLhdAbWr/nZ9cOw2m4gVeYjqLmYnh4fDjbDzUdIFbq8JwJk5fJqlGqX6oYFT0z+y2ekDz09jGyKP/iltuv8mnC1RemaQGdOD0NEtbABwxGtUkXXNEQRhFWDY0mLS3x7z/rSzpHJSOkNxKFNhgrP8hIK6GXHyCMHT2qhpseCI43yepgKSfmMivv9ydTqqtrd0MaWYXZJoFtVQanOmXmY4YtA1JZqHGMSeCb/0Q== 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=iMjw5+ghzuNqoeDG0jNTvhX+NDGY7sIKVhcrOeouA6c=; b=Nr2UlNqBOU+blGrExE2TrlI3dIAdDKxMKkN3Fbe6SvDNGQYWd5VZyPC/kcoBd316+Ds9AUYOpAnOc+dmgXCCVVk7jJwABxVOqxWY3UwjJFLZzEzsTLtSbVsYcX4BhFsaRHvUs9r6+fUFboms8lgR1ojO8ks7otE3g7WBcD6opWJdr6QOjummPm6+J4PJEkFRJw4+SVpPKRsmkkqqprVipizyZZzKR5yu5m3FXzD0XDZBoA/rDFf2Cq/7IVtgqXVpCyaAWiEBZZdvoqlhahtIl2V+PMZ2Ws4TXlun/nPk4Q5ifb2mStQFzwrDW8nV7PD5Y1b39s0mH/nyGFjqTNN3fQ== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iMjw5+ghzuNqoeDG0jNTvhX+NDGY7sIKVhcrOeouA6c=; b=e28B9YxCSPHGaxffOWOhZZhZHSjYSFIcjYImJJa+Rvu5IX8NRfVFcSXvswWXrmK8McghNw6Lvc6SzqE3F8koHVTtt1xuKIwuSNlClPaorU4U2D2O4OUK8rNIeEm7+H8wJgr/P7mEtpysnOqleI5xwJsjjlr4HRXFgD0BNB7EwY8= Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Szabolcs.Nagy@arm.com; Received: from AM6PR08MB3047.eurprd08.prod.outlook.com (52.135.167.23) by AM6PR08MB2951.eurprd08.prod.outlook.com (52.135.168.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20; Wed, 1 Apr 2020 10:10:04 +0000 Received: from AM6PR08MB3047.eurprd08.prod.outlook.com ([fe80::8937:3724:2930:ee81]) by AM6PR08MB3047.eurprd08.prod.outlook.com ([fe80::8937:3724:2930:ee81%3]) with mapi id 15.20.2856.019; Wed, 1 Apr 2020 10:10:04 +0000 Date: Wed, 1 Apr 2020 11:10:02 +0100 From: Szabolcs Nagy To: Florian Weimer Cc: Fangrui Song , GNU C Library , gnu-gabi , Mark Wielaard , "Zhang, Annita" , Binutils , Cary Coutant , "Liu, Hongtao" Subject: Re: binutils ld and new PT_GNU_PROPERTY segment Message-ID: <20200401101002.GO27072@arm.com> References: <2e29243995903cf2d52975543675f2b92fa1e201.camel@klomp.org> <20200222051913.meiied65a5daylvk@google.com> <87tv231tkt.fsf@oldenburg2.str.redhat.com> <20200401092253.GM27072@arm.com> <87ftdnzh8q.fsf@oldenburg2.str.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87ftdnzh8q.fsf@oldenburg2.str.redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-ClientProxiedBy: LO2P265CA0023.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:62::35) To AM6PR08MB3047.eurprd08.prod.outlook.com (2603:10a6:209:4c::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from arm.com (217.140.106.55) by LO2P265CA0023.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:62::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19 via Frontend Transport; Wed, 1 Apr 2020 10:10:04 +0000 X-Originating-IP: [217.140.106.55] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: e1ac8c39-5ceb-4410-c57c-08d7d624de17 X-MS-TrafficTypeDiagnostic: AM6PR08MB2951:|DB6PR0802MB2231: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:8273;OLM:8273; X-Forefront-PRVS: 03607C04F0 X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR08MB3047.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(346002)(366004)(39860400002)(376002)(396003)(136003)(36756003)(81156014)(26005)(8936002)(186003)(16526019)(86362001)(478600001)(81166006)(5660300002)(8676002)(44832011)(2906002)(6916009)(33656002)(956004)(66556008)(54906003)(55016002)(4326008)(8886007)(316002)(2616005)(4744005)(1076003)(52116002)(66946007)(66476007)(7696005); DIR:OUT; SFP:1101; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: EIgRauJki9gna7mYQWcXcJoJYdApgtpMCn61gxmpxPbHBCbDTV+nuCcZUZCLkQSrN6fzxoTc8j27R3GNQ4FxvPKvwpf8KNznGLuKBlB/8985rFa+CJ0CccMXd1hpzWqIvZmBoF8z9H/hriNmCaLp1mPQYLTkwfUjyhxe/tDu46+PuiLcqk3dC3XaPgNOVgldP8GI/KtfPFCSYbNCQiOyT8nx+llZguRTGsfaSgtQSRdnaSxnZ/j82PBajnPBZbIWXU4T/LuYom7urMiNP/GON77IvcYIuGl+Zv2E6a6McmvaneXX9BGKr2RBETRxUYtHbaSQDa0bab2XOZPcVYqruJXqNbsp+7xAjhjivOaHJav12bs3uqfvaYDKTy84BOeXGAS3Ke5+Mm2Cg2g4v6eJ9EEHdxgSx1vYoeQVpynK5MB0jWqVZ5PYqIO12RoOys9V X-MS-Exchange-AntiSpam-MessageData: ZUq9smWrKzZuDkHlry7Tso2u3Zx8in6BsU7BSdKd/ibk/HN5QPGRTg3PFT/eRig/ZS2oV5Q8ij56ydmXSusDbg6ILrSz51YjZAFGXlwjNVI3qgBT3ss3R0f/6ww4ZI0GJOF2cM6ITQqKm5r6vj5UKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB2951 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs.Nagy@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT015.eop-EUR03.prod.protection.outlook.com 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; SFTY:; SFS:(10009020)(4636009)(346002)(376002)(396003)(136003)(39860400002)(46966005)(316002)(478600001)(336012)(82740400003)(26826003)(86362001)(956004)(2616005)(16526019)(186003)(47076004)(70206006)(70586007)(26005)(44832011)(5660300002)(8936002)(7696005)(8676002)(36756003)(8886007)(54906003)(4744005)(36906005)(1076003)(450100002)(356004)(6862004)(2906002)(81166006)(81156014)(55016002)(33656002)(4326008)(107886003); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 72adcb4e-065f-4583-1dbf-08d7d624d91a X-Forefront-PRVS: 03607C04F0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NzaV2AoiFuMRJu98GHlDw4IEjs5Hq8xPZrJCEMQwcWw39nmHPNuUdG17pNweZAfv0Ew2foZceOGIr06TA5N73J6SV1wfX4D6guBSd/rTyMjObspUj/VSSRBvRCJRscat0I8JqfTp45dK6JuMBl/7HKXiHzgjngExVpCA/nXQMfUSl5rd03rpF4hf3aBmmxDQAb80xBwPc5hretkM92su8FjiCUWYb0KQ5ZUG2Pjwalf6JfTWDE4HeKCZmVjq9uT81W4lEUHCXzQlde6lauJvwHR1t5+NKaW7qU/Vos9Bwu17UVX5Qp8KDdQ3QJXfZE5UXtW3bvth7qbPguaIioiYEJys4xANCa3cajKqQ6AY5mTzm1B8y6ku4eFLmP0fZfuyS9VxMtkvCr/wuc/rO0C91Q9Yj1SIR7XHCmhlDbg6XfMIBHKoj2ikCVaSDuq+2P264bsGhO+4QhiUoiule7cJwdQ3MjWS1iiqDfNbqrKhZ5EulF74AcvYoRtRwUZa0YkxdoHcaq+ljVvGq9PolucqPA== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2020 10:10:12.7623 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e1ac8c39-5ceb-4410-c57c-08d7d624de17 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-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2231 X-Spam-Status: No, score=-16.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, 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: gnu-gabi@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnu-gabi mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2020 10:10:17 -0000 The 04/01/2020 11:29, Florian Weimer wrote: > * Szabolcs Nagy: > > why only -r is problematic? > > > > i thought linking exactly one marked object and other non-marked > > ones with an old linker will have the (incorrect) marking on the > > output that cannot be recognised as wrong. > > Where do you get that single marked object? > > If you are on a CET-enabled distribution, the startup files are marked, > so you have multiple marked objects right there. assume your toolchain is not cet enabled (and has an old linker) but you link in a library archive that is cet enabled (because it was given to you that way) and exactly one .o from it gets used during the link. the resulting binary will have the marking and if deployed on a cet enabled system it won't work. (at least this is my current understanding.)