From patchwork Thu Oct 26 19:13:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Indu Bhagat X-Patchwork-Id: 158652 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp111146vqb; Thu, 26 Oct 2023 12:15:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQZn9EwB8srFJyZmSqe8/Tann0Ujvb4rC2pDrETnagNL5dNImiP+dzkIr79OITQcu/jSOe X-Received: by 2002:ad4:5aab:0:b0:668:da55:6c17 with SMTP id u11-20020ad45aab000000b00668da556c17mr657165qvg.49.1698347705051; Thu, 26 Oct 2023 12:15:05 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1698347705; cv=pass; d=google.com; s=arc-20160816; b=qhPAF3vZ/8L3o33dY/mmKaoRwxYAlyV8eC+r6DUdpqNwkOS07VSAfMS2tlXW+Qwh75 Uyaur0b9AUTAwLO9Gsue4slHg57ASjIqfdYPsLJnZkteQAVCIGz4VtlcXYszLIRgFox2 9F+NvDWKBBbugAiU6ZEkEftTck0nKmrqX8eYL/Fv301UJTfgIXNGVAJcloI9v0ktEuUw fePLzKU1NWgA+aNX0sybd6yDh9lXRCnqcR809CShQ1YpAdBH/6jzv8EiltMO//hJY7hH lpWkXvjXKQImJ8BYZtYFqSIMg7tfB5QMaAUaeVFZJm2vBftLpAuN0RIzy2hgOt8Ao90o 6ZeQ== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=Q7xTSkq4BgCEYiPsaq4R8k3KIX1rS1AcfCw8NdCSYtI=; fh=Oh0rwXgL2pcS1FQHr6E1Hal1K7kVHmZXDthN47bNt4Q=; b=SZKdxkw6xACMgzec80pd9GEiQAy3cl70Ae2ALH3nAQiKK7WkwVlUpdxF5SeWnWEFhm jCCu6/a+U1SMCZ1vlpcH11PpN/YOmAygWaqudGFke9pnR6gX0p5PaxYwjbV1GtbYMxG5 ijPoyyrYVTqgEIj/OW1cW8NEiwqmAycDEtDjuNDoDRGutdCyo0WX6beBT5rPsVrZMDkK 50KSxGkunnfhxqAAEAfSXdEtaQyXli8C8WYb0EYQBgX/iwqdPrJz35HcmfwfYQwbflix 6MrzrNDbQwc0Przxef83W4xPQ/d6ZoHGVWNMwyfoua14efo4E+OzQ7wgNZng8A+mptkd lXtg== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=YFq++06G; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="z3o/Kywp"; arc=pass (i=2); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ks6-20020a056214310600b0064cd41b2cf3si60542qvb.25.2023.10.26.12.15.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 12:15:05 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=YFq++06G; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="z3o/Kywp"; arc=pass (i=2); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7E07C38618E9 for ; Thu, 26 Oct 2023 19:14:35 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by sourceware.org (Postfix) with ESMTPS id E6A94385B53E for ; Thu, 26 Oct 2023 19:13:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E6A94385B53E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oracle.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E6A94385B53E Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1698347639; cv=pass; b=mpJ9DEEnVoakcCXVOcHt67HRH1+K2DWaBx71nTKhWAEZslSmnzd2WB/5jPaHdTKBBTjH11HtkDnZY8PgNzENzZLT71ua0SLAL6AUAdqwoKCID+5BhjYtj2e8CeDB4HDrHveEU9/8OGdDWsbU6+vIdsDGWyZGdjd/+Gw0/NbRzRI= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1698347639; c=relaxed/simple; bh=epasOYx9p5yHLEmgcyCwnZ8exGfb9zH4IVKK/MSmpM4=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=xxq8NV/OS7c1aCYqNREQJDAiX8C/uOOOuAj3b2+sJGqMz2zx7d/tOrihqR1qIjSXGdEPfB+WxhduYgcN741kgiFP/PK3ZOrdpxcc+Rmkt4gv0yWNuHqjIPHcf4O3uwkdjCbK6n0JErS43FOoXUURh/Z/rj3jyNlnaeQJI7NCYoM= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39QIE2eS020342 for ; Thu, 26 Oct 2023 19:13:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=Q7xTSkq4BgCEYiPsaq4R8k3KIX1rS1AcfCw8NdCSYtI=; b=YFq++06Ga6qr1yDMo96rDW1keblAgH2hUqZ9z7sH/UgZ6L5d4rZz/UD7AxhLCtLRaEjv XpR2CA6sxvn+rsSUNXre4LTEKR5K/gGQzpBh9hy1nMAaPqul6mxR87XEUumIXPbmh//l Z6XCP+BcB4/vnny5qnB3XB8rLlhIcYIzU/MfwNtSlYNtqPy+04ib+Rr6GRihcz/S+1oZ hoTtGd6l9H/G/1awGGDrpWlEgULyjea8KKu3Lhp3NZIkAoL7ClfLpkDIAGXn+mtYTbyE Xs+GAkIrrv2SGUIs7vCGsEvUpjCVKsOHoXs6cde2CqJi5C68vrYn7o0Se9ujua3RgSez RQ== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3tv68tktyd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 26 Oct 2023 19:13:57 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 39QImmsL008146 for ; Thu, 26 Oct 2023 19:13:56 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3tywqhgysj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 26 Oct 2023 19:13:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a/7IT63g/vflf1ox+kw5R60w4nG8xIyUXKgp83bQHj5CvG01ceHsSiPCvIIFE47xkt8UddAavJMv9xReDM+z424BLHJMG3a77TCuat63KWr5fy3KqpeQFdFVLOIZ6yJ/o96Md0MnZloXcaqwnUim+3TpqqfYCmmncjS2G4KMCSjbAR47GCPlhFjol/Hrn1cF72B/sOPKQK6w8MNznPIqxxlfA7izaBXEckx1iVJKxnG9O95+Dk07fM0poahC0lWwqTxaPeOxDgF6xicwTsvhu3wGTCN78fw4NZqbHbHvmrmjXaaqd1Fx3qLt/OZKCGKnVQ0L0h/vTp0jV8KOp93yqg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Q7xTSkq4BgCEYiPsaq4R8k3KIX1rS1AcfCw8NdCSYtI=; b=hUWAI4U6mM6/Ea5K6Jg6Ivtf/sY2Ocj9o6MURNU04IBxN87H/VrFUGH43twVhbf3HDp3gZu1ah3mb1zbYPX4ed+2iTVdrroEd0B+AAjGHGnaqPOuS7Z9fdWVJ24vs1TGFxwgurVOdEutF9nrffzzapkst3DbBQiAcjzKICnOP5OZTNOEacocCvojMxOWzz5UQ/Wmg88X1ynOrkB/MClvbrPpMUpzI1dCS2hbd6RGaSNRgabMUiWvfhV4W3K/BI2bjvsXXpb0v8KiNWJ0luRN7prxW7o0wtnMpy6i5OQpJUJfkf0dkjrmqjwyc2b4qbOEEbSR34v1p6iGgHwdQGLnPg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q7xTSkq4BgCEYiPsaq4R8k3KIX1rS1AcfCw8NdCSYtI=; b=z3o/KywpC3BmVoBZ9lntSphqvq67hy06Qm6W0BCiiI6D5aHjvZTTbrfLLB6LXt/TgDXVGtHnMcNjGLAcSsGwYRDAwSw9UYNEm05CnysjGKr9S/vuAIqy3HrswouSEvs3jpyOuKvhK3nEMVwdD2hwsDlevQALUQPUfLKdP3ioOck= Received: from MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) by CYYPR10MB7606.namprd10.prod.outlook.com (2603:10b6:930:c4::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Thu, 26 Oct 2023 19:13:53 +0000 Received: from MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::7f02:c28d:9802:20fd]) by MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::7f02:c28d:9802:20fd%3]) with mapi id 15.20.6933.019; Thu, 26 Oct 2023 19:13:53 +0000 From: Indu Bhagat To: binutils@sourceware.org Cc: Indu Bhagat Subject: [PATCH,V1 5/9] gas: add new command line option --scfi[=all,none] Date: Thu, 26 Oct 2023 12:13:33 -0700 Message-ID: <20231026191337.3872149-6-indu.bhagat@oracle.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231026191337.3872149-1-indu.bhagat@oracle.com> References: <20231026191337.3872149-1-indu.bhagat@oracle.com> X-ClientProxiedBy: MW4P223CA0029.NAMP223.PROD.OUTLOOK.COM (2603:10b6:303:80::34) To MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2158:EE_|CYYPR10MB7606:EE_ X-MS-Office365-Filtering-Correlation-Id: e9a3823b-3037-42ef-a938-08dbd657b1c7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TaNJx1EPu6ma8a5r5is7k79wdFw/Qg1h11xfYWN1AR1TtudvMomX2BLgL5HUcL6d0OXoFlXRNlHc0apx/VS7gDGHqj1g0fv92rbMLki9lPG4fTtoDl+trAJir0EnlFQPc3ZDjBEso6kt4+U8sG22BYDF8NT8xyc7vqT5ZfDR7rWALawtDNPCYiNGLWzI4Ra0bAaK/3w7GJ5p+2Xs/6U50gkRjC9TCNXlW6L4gm4RRqKZR3/i6JONy5h/kxD9DclrF0j2QFe80iMEzYeYP+dmLiV1Zp0zskuE6c9BcC8iMI4JUyQ8yQCw9+b/7NA+mK8LtiwTmTTP+MOWA6RPJPhtPDgX3K+n3vagMnhb0N5jeakLBgBhhuvPAclmuw9ZGkQM4qUcDYP4YelhYAyOfZKpbHxKOYVGwhFu6GpfFQI+kmtquvvLRw4JVu9O/XMAU4rVtWKVr1tFYvjI597Ce/M/VnxLuH/Q8HtqNjrhScHfKV+lQFBxd78CXHEOQX00x4d/Ox8eCHwNfy3q2Dxobaw0NAo7UAddQ6araZWSlIAHfBfQ3Jn74CHaUyyQKapZQvuBIRMWVl0nW+gDFEqfqk3JAzjtAuklEiYb95vt/kLuasZFBTBX44MZaA12GvPoGKS/UyNNNTpQr8TlLprWvQMXvq3k0mIg2ERY6hVnnOhaizPcnBuabYklgf/eAPxuAhwI X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1001MB2158.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(39860400002)(366004)(346002)(376002)(136003)(230273577357003)(230173577357003)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(478600001)(6486002)(38100700002)(66476007)(316002)(66556008)(41300700001)(66946007)(1076003)(6512007)(6506007)(2616005)(6666004)(107886003)(8676002)(86362001)(4326008)(2906002)(8936002)(44832011)(5660300002)(83380400001)(6916009)(36756003)(66899024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oaqmsJiF/565Mfk0OO44C3CStDQNnrFqRVR3+Rx9zHV6G4wthqiIhUkgJ+mc+kBEWvkpbpkla+qIZXep0xyZZa7f0Ib4Zc/cwSMat42ME4lqDg9aDqshutJaXMJKEiqQ+f/hgxjy59nJsACmbIVX5N4Sjif4vQ1OSXFNQKMO9KakUz0q0Snmm1FkQbk+QHIsn4Ku1R89mdlpnEKRfC4kNqI0Nk4hRmSqdVxjt2A+idYKiKw/tI16rQDOTNiByl0DmwKMvpdN/BZSozB/mw0+KqyX14z49ONNVFLlXy9AJ29/1uijiFCNZfU65/53cjlQCO3adeP5Yb6NBdCBnc19wYG5Hfqu0d2ILo9JHUdBHFLKc1XxM0hGg+ipWNFaMlNgjvOGpBAnYO6SY5Y9njmrdziiF+MyBeunDDqGXvVeKi6S4aDP+vNJ7rqu9cw0I0KZNQDmxXeAkeuCNLU3FyuoII/YZ9xYEb6IbkPPalTZjxH8xpq9+Oiilfk74T4V4rxKOpR2CYJS32g3jL7wKvjJ7+PCoA5l2EJ+bpit6ON5hdhF7TtiGr+7aGzCbNqtKVwx4ZZtB0x+vE1+dJ4C4pY6kdie7Ip9yREsoiYSjC96bOPlat2R/TXu75tl/DQng1Z7hauTPRn0JF9CPQ3i/1OTGiGw1cJ/cF18BRCTHb/lERMRY5UIupgNY/W63vIpZVcIAUuWlXDWI6Jsk/a+vVd4QbRNWRT5Wag0L0iFk7r38io0/GwI5P6+7oMfGlpO2JmnZFxRUgquv6at9IwnM1u8rS2/xBooNWQXStXUQIpuhhNiy8lnUjmvtBRI6oDaB221CNyyvHcvCiq3AZ5hJ6DNYZ5wjN+8vnaoaijeRz3pYdfNBrt0uGr0LJeYSreN4tmcFBeSTC0w6Xgy4+/+OEYOS4Di/eGmX5gE5NPjDaCWbZVs5ypCI1q5ltqAlJWtDGDmi8Mb06snTiVA4eeb0Y3kK2Q7dyHZPIJPvtxe7HrWTyiZTqH/dJ24Xaldwiu3Vf4qEG/N7AP+uhEq8BF+rWZn6kO36l6nQVPcjVU1QkslvIlF2Ji3IOV5HsltJt3PEdM9pXDZIs8LrjFdAil3rJ/VORZ7Dqv0BC7cXhHDrf5lP9NpSALWy4DvFDf9DDOYAlUJISM1vs2S2hk/+rWkkylnjhV+/Fe2EeLWxbHivnYmWEymjFEr0rgDUGqoeqnAU93bHswl79jzqks+muQqQVUufoMF0nptjx7DIpNRnl9cjqNUCsBD5cVWTIYx2M1byRNQPqAnadRVc32yJxZBi8qYKqohYzbnr/5fUoS3FV34rUjsY5gUaV7ZbsH4cZpXiOng7ckqgqvFJW1GW4ZMor+3g6B6AcnA3wB9+emjxD20TqXD/GvhGX6y0nRysMQ8mWnrXEO3eaF7I72GzaZ8QQ0tkFBzVsFQp3d3PrrO/C3E6kNf+8MlrkGBPtg2AFCM6yKvpny7XEHcXSrAYME/M3Pe7sHKkpTxo2EBJmd9txkTu1fl/LtJpFMPMMdV8BUlSowXqPAZKmd5WbXS9w+tTFuB1HToO9vBlICTrWJ25zCO9OPNIsX/bJ1Ml5Of88j/rvfN0PMdY+z94oxJPHcrkMawAn9sn8v7MWhryq0hivnqzXs= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: xzNKMs7TeDJDNtJjYxZjBRSji59LZn8+E6TRaCQ9okg2Evvi+qRn7K1YItCWs7fpVmwQyLM38Tontbrs/VS0JJ3miVbmI1i/IvbtqCiFgP4PwuYPRliSkqBo7HzjZ4Tcc72B2oQWSa/vNlutETrmTdHN3xsLYJ9mv3H4z6VX0Dc7fRSkpd/0Dirf26OmHlsOCVVKIjz6JUSh32yLFYKPUD6hfZS7iDqQ8c0INKPiO5iDcCPHvtX5N5xlJ6ndEN8yKSyIeUXmKCIRaGS2tXY6CulnKH6k2DRsnBh/t/EfNtJJHVMthnDOpxH7DfDHx0l04+Zir7G3V9ncTrcy4ki7aXTA5et7gQzAgYQcT1/HVGw5TZsB6/bDrK6j2EiQhfD0mbtGluGBk14K9EWL4T9s/Uwzg+Cir371Ij8YX1/RqEO0qMLbAiHs+mmVDQqykxuGB9nOZA1j+ePOMpvVKC4xbN8UT10NT/nqG1L2tqKYQhwkBM4UEo+kyUX2E9wCznI0shM8O6bABYw1dHKsWA9SM3Lp+3JcBQFk1VIaOUC44QIgvXbCd5r+uYhRb6Oh1iheNB7/DSVIdHK46ZAgc8Ihwv+bhf+dbg1h6phRGAAmejKDwI+X1ffJW+8WHMR392AfqRmpS69x1BGRctSu9+qRv1Y50a7vETE8MCbTijdj3RlBZQUrcJKWnQqZf3mnSd2fcHBN8nV6YMgkPHxoAI1UQdb/bO50Q3QRaX6o9IFKsA18IoM0meTNNh+vtQjdkOwxcUfQSm0Z39NM9IcVfMnQWw== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e9a3823b-3037-42ef-a938-08dbd657b1c7 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2158.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2023 19:13:53.7939 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1cf/m8VGCWrVktAntB+yPJvvWma1+lbhBzObPxRlZtf1pdKVApITPV/bOJBJ5Wnf99vG8xShjDaqnbqk1FIttg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR10MB7606 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-26_18,2023-10-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 mlxscore=0 phishscore=0 malwarescore=0 bulkscore=0 mlxlogscore=776 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310260167 X-Proofpoint-ORIG-GUID: qfQahfbwDtzP_7UoeYjiikGJWTO8SqFQ X-Proofpoint-GUID: qfQahfbwDtzP_7UoeYjiikGJWTO8SqFQ X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780846643029227553 X-GMAIL-MSGID: 1780846643029227553 [Changes from the RFC patch set] - Update documentation to make it clearer. - Guard the --scfi option processing behind both TARGET_USE_GINSN and TARGET_USE_GINSN. [End of changes] When the command line option --scfi (default is --scfi=all) is passed to the GNU assembler, it will synthesize DWARF call frame information (CFI) for the input assembly. The option --scfi=all will also ignore many of the existing .cfi_* directives, if already contained in the provided input file. Only the following CFI directives will not be ignored: - .cfi_sections, - .cfi_label, - .cfi_signal_frame To use SCFI, a target will need to: - define TARGET_USE_SCFI and TARGET_USE_GINSN, and other necessary definitions, - provide means to help GAS understand the target specific instruction semantics by creating ginsns. The --scfi=[all,none] may see more options added in future. For example, --scfi=inline, for dealing with inline asm may be added in the future. In this option, the GNU assembler will consume (and not ignore) the compiler generated CFI for the code surrounding the inline asm. Also document the option. gas/ * as.c (show_usage): Add support for --scfi. (parse_args): Likewise. * as.h (enum synth_cfi_type): Define new type. * doc/as.texi: Document the new option. --- gas/as.c | 22 +++++++++++++++++++++- gas/as.h | 8 ++++++++ gas/doc/as.texi | 12 ++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/gas/as.c b/gas/as.c index 6839c841588..97b0ed38fb6 100644 --- a/gas/as.c +++ b/gas/as.c @@ -372,6 +372,11 @@ Options:\n\ -R fold data section into text section\n")); fprintf (stream, _("\ --reduce-memory-overheads ignored\n")); +#if defined (TARGET_USE_SCFI) && defined (TARGET_USE_GINSN) + fprintf (stream, _("\ + --scfi=[all,none] (default: all)\n\ + Synthesize DWARF CFI for hand-written asm\n")); +# endif fprintf (stream, _("\ --statistics print various measured statistics from execution\n")); fprintf (stream, _("\ @@ -511,7 +516,8 @@ parse_args (int * pargc, char *** pargv) OPTION_NOCOMPRESS_DEBUG, OPTION_NO_PAD_SECTIONS, OPTION_MULTIBYTE_HANDLING, /* = STD_BASE + 40 */ - OPTION_SFRAME + OPTION_SFRAME, + OPTION_SCFI /* When you add options here, check that they do not collide with OPTION_MD_BASE. See as.h. */ }; @@ -586,6 +592,9 @@ parse_args (int * pargc, char *** pargv) ,{"no-pad-sections", no_argument, NULL, OPTION_NO_PAD_SECTIONS} ,{"no-warn", no_argument, NULL, 'W'} ,{"reduce-memory-overheads", no_argument, NULL, OPTION_REDUCE_MEMORY_OVERHEADS} +#if defined (TARGET_USE_SCFI) && defined (TARGET_USE_GINSN) + ,{"scfi", no_argument, NULL, OPTION_SCFI} +#endif ,{"statistics", no_argument, NULL, OPTION_STATISTICS} ,{"strip-local-absolute", no_argument, NULL, OPTION_STRIP_LOCAL_ABSOLUTE} ,{"version", no_argument, NULL, OPTION_VERSION} @@ -982,6 +991,17 @@ This program has absolutely no warranty.\n")); flag_execstack = 0; break; +#if defined (TARGET_USE_SCFI) && defined (TARGET_USE_GINSN) + case OPTION_SCFI: + if (!optarg || strcasecmp (optarg, "all") == 0) + flag_synth_cfi = SYNTH_CFI_ALL; + else if (strcasecmp (optarg, "none") == 0) + flag_synth_cfi = SYNTH_CFI_NONE; + else + as_fatal (_("Invalid --scfi= option: `%s'"), optarg); + break; +#endif + case OPTION_SIZE_CHECK: if (strcasecmp (optarg, "error") == 0) flag_allow_nonconst_size = false; diff --git a/gas/as.h b/gas/as.h index 46dd0d0776d..378653e2200 100644 --- a/gas/as.h +++ b/gas/as.h @@ -324,6 +324,14 @@ COMMON int flag_fatal_warnings; /* --fatal-warnings */ are detected. */ COMMON unsigned char flag_always_generate_output; /* -Z */ +enum synth_cfi_type +{ + SYNTH_CFI_NONE = 0, + SYNTH_CFI_ALL, +}; + +COMMON enum synth_cfi_type flag_synth_cfi; + /* This is true if the assembler should output time and space usage. */ COMMON unsigned char flag_print_statistics; diff --git a/gas/doc/as.texi b/gas/doc/as.texi index 52571d95dd2..cfc1078c36b 100644 --- a/gas/doc/as.texi +++ b/gas/doc/as.texi @@ -255,6 +255,7 @@ gcc(1), ld(1), and the Info entries for @file{binutils} and @file{ld}. [@b{--multibyte-handling=[allow|warn|warn-sym-only]}] [@b{--no-pad-sections}] [@b{-o} @var{objfile}] [@b{-R}] + [@b{--scfi=[all,none]}] [@b{--sectname-subst}] [@b{--size-check=[error|warning]}] [@b{--statistics}] @@ -932,6 +933,17 @@ Ignored. Supported for compatibility with tools that apss the same option to both the assembler and the linker. @ifset ELF +@item --scfi=none +@itemx --scfi=all +These options control whether the assembler should synthesize CFI for +hand-written input. If the input already contains some synthesizable CFI +directives, the assembler ignores them and emits a warning. Note that +@code{--scfi=all} is not intended to be used for compiler-generated code, +including inline assembly. + +The input asm must begin with the @code{.type} directive, and should ideally be +closed off using a @code{.size} directive. + @item --sectname-subst Honor substitution sequences in section names. @ifclear man