Message ID | 20240103071526.3846985-5-indu.bhagat@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <binutils-bounces+patchwork=sourceware.org@sourceware.org> 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 AE85B3857720 for <patchwork@sourceware.org>; Wed, 3 Jan 2024 07:17:53 +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 BAD463858429 for <binutils@sourceware.org>; Wed, 3 Jan 2024 07:15:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BAD463858429 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 BAD463858429 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=1704266147; cv=pass; b=ePAfappjkeP7hMQ+XWXRG5npIg/Fq62+SVn/2LkYk+Tdw1fC9wk12CEMflTRDTelmap28DqxqV0ZeK2lQKo9lsTXL4/Y5qyJavLnqpjC/PP8l45ndaZ7C8cD4ABE2Av0v+mTtHh4L0JsqO397UCDhfKGcOOyNz4LLLEGmYnALdk= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1704266147; c=relaxed/simple; bh=X/s43mel91IThkwA3EuPJwQ/JvGXhi/Lxv1SE5g9S3Y=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=JatyesauK8Pt83bq2Grlm0qgzqZwFCzaEXi2cfIbyDEUMCNa7NTpfjjOtRXJp9dLSb1iWmoQqf08VcYa3uhaoAxMkDvJFR2JS080OHaXG+IIhrB2kIveznFOq09bZxEGjAleUf34rdjh21YT70QihPDTV3ugAJvZLV21O3WVXbQ= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 4030jH8v030230 for <binutils@sourceware.org>; Wed, 3 Jan 2024 07:15:45 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-11-20; bh=8SKZ72LlztGpIubVd+mSQ7dTY75hgDKODpPUX6vGJsE=; b=DOY8yygNc2WqQ3DYxz6U2Me6sjKtZqC8Xke0shpQlXi4V/RmgCSWpELuJ4QczWguih/A ZO/OmkYr+LBviA1QyZkwQgH/FEPM5hSce+FY2kziymk94+VihYHF52Eqm8Gf8Lmyk5qX VPVfzmO7cuNhDQ4lTv0WxXJhG7/qtEnlZ8r9iJRcvAZsKJw6xtbVfOUlcicVaPI/cdj9 3SKCgb1HYIBUmkTO8ffShkSehSgSQjw/pfGIxJpCokn6Ny4TqiqXU9hG9DUlFjXMTlQv m/ehZpOjlew3C75QNBPU8aRtrAUteBn/KcO4U4FjJJIfQJVV4YlOJkIQ2ZLiFKHt0x6N ow== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3va9me4d3n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Wed, 03 Jan 2024 07:15:45 +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 4036NaHX001796 for <binutils@sourceware.org>; Wed, 3 Jan 2024 07:15:44 GMT Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2040.outbound.protection.outlook.com [104.47.51.40]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3va9n8pdjw-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Wed, 03 Jan 2024 07:15:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dt2fdMPTAXvBOV2leFg8c3Fe0nIg4p5TrIFg9N233cDix1YCQEZYr6x5flpsDxQbEGzvsBvMstBCJURXfcS8LVJvA/pwrvy+oDsk5l2fSzwB6K5A/Sfub3laEKR95sr+eQ4Pclz0NZUWR3A9cY2DbAbwJVkc0icIQn9+S63xMOmWVkxgiW4vyImAME0T5yCkuSencQ4rMQZqC5qtNPR72OWsQl2WrAxUfmKlNrKW2Nzy72d8WnV+BiHF7oUMecubBJ8d7Wa8o+mhv/RVsHZwoVXhi5+4TaOOSfIX1A1pZMMSEs/c30n7mKscU57ikGP9MhJfPm9lR1eyqlQ/opwNhA== 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=8SKZ72LlztGpIubVd+mSQ7dTY75hgDKODpPUX6vGJsE=; b=f3ipuR4UprzxFn9RapcL3Otps0R0MjdNEzV4f+Bfro7mpKZgS+uoouYWsFKlscly2GQr09el9xWOH2RH3nQH99aQVe6QuQFK+X43IZtxic/JBLo6El+jqQf0VY8CfotHfagY7OmVawLQpCO3xghiXH+MLj9E2HgRqlZeWcHyqGZTOFc3RQuoe5f0OXW18VqTdc0hMRE5dmgAZoO0l4vsvgsM1fCPGConlvmL3HonsmRFkmRRNjHxXmYLMSJNHlpjjLAOGAs1HW91wSlPq6f9JIP0YePzXe7Gt6YbvSMXApDzq3C0OuUb+9u94OKJw1i+2uLVWqBuLnU5EXy1FKIA/A== 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=8SKZ72LlztGpIubVd+mSQ7dTY75hgDKODpPUX6vGJsE=; b=zBs17VZT2jfqASI/mQVDc1Ictf3Z2Dl6yjM1zCmp5NG4xazkpGTeQdc1iA5IJRTK38NLqJTMBViifUaDuXYpZrrGkLfN/EAknEBiF+1x3GwaAZD+usbp8dL48tBqCwOlwIZjidM9X5ZykvpZT9uDxoqhXLIGY9VcLoz3I0sxW3k= Received: from MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) by CY8PR10MB6777.namprd10.prod.outlook.com (2603:10b6:930:98::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.25; Wed, 3 Jan 2024 07:15:42 +0000 Received: from MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::fde7:fb92:8ea1:a5ac]) by MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::fde7:fb92:8ea1:a5ac%4]) with mapi id 15.20.7159.013; Wed, 3 Jan 2024 07:15:42 +0000 From: Indu Bhagat <indu.bhagat@oracle.com> To: binutils@sourceware.org Cc: Indu Bhagat <indu.bhagat@oracle.com> Subject: [PATCH, V4 04/14] gas: dw2gencfi: move some tc_* defines to the header file Date: Tue, 2 Jan 2024 23:15:16 -0800 Message-ID: <20240103071526.3846985-5-indu.bhagat@oracle.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240103071526.3846985-1-indu.bhagat@oracle.com> References: <20240103071526.3846985-1-indu.bhagat@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW4P221CA0030.NAMP221.PROD.OUTLOOK.COM (2603:10b6:303:8b::35) To MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2158:EE_|CY8PR10MB6777:EE_ X-MS-Office365-Filtering-Correlation-Id: 7ea07e3d-e011-4e4a-c005-08dc0c2bcbd3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Dc9LAKfD5LZfU6T6lFEl7QVS2X3GFYE6Jn4QJQ2LNhsiI4GJEun6dYXnMQXcmQHxfinwNW/JlQ9Zjs/N/TutnHE7G8MFoRPu6xyjxxGnUyOIXKRd4crZ05e81XBEK9Q19fU8QRPxcbs3J399Kqj2AzMOexpbdqKsDD1M5MM/y2g2ZDJr112SJxaW5mWTkc5qn+uVJJp8a5AXlH7nRgUL+p3Mc7BHszU6RdyfUj/8L8SpRrdOzNUDx4uj5f61VZkzwolErcAUB+RXbcSNrbOg8wPS1bUIMMCijJY1UGT2MO9VoGLRkw/qKkshQQuN/f+wwV/YnUQOcrXZU295p9/pOEE65nRqpIkmskMSB4W8eAq9s+Z8YVXBbCFFpaAVFUR6xKteMgAJvCrtjwzU2zc4xiiRrsCOKnQXuXGgkwZfi7KfqgaOGZIkSPbseT92WBvG2WGdHOSUP7jWLFlgGZm3sLld3rfQ/jr7hjTyfIlcJDJbF4XUxuWc+vhhrhlhkF+PGt2WEFSeO9Yz6n0B9YN0KQG/iThY3z/1eBS4jPt2BNt/Vv+hEUlg5tRk39S3EHc9 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)(366004)(346002)(396003)(136003)(39860400002)(376002)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(38100700002)(36756003)(86362001)(107886003)(1076003)(2616005)(6506007)(6512007)(6666004)(4326008)(478600001)(6486002)(8936002)(8676002)(316002)(66476007)(83380400001)(66556008)(66946007)(6916009)(41300700001)(2906002)(44832011)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QcanF0so3NfGk3XwLrAyOlAmHzlELNkAU8l2iiWLbYUomaDEkmmC7BEjv9yMakLqcCv28orsFtNIracK3RO7l3NNXlcNUwtnlFuSyn6tzo8a1ewgJxcOPo22IWkQi1VGxkWc9NNBPdTLpNkXn+/awLhg/74Uropwsoo+871j+duJg9denJLNUQTWLkX7VzCn236t2OIvs/BRLIlzTw5ukNg4oen8FQH/pdtWN3wRsyAEQprz4H889vMDjQfVaXpT0x6WJzGAW3RhOlJrxsdKz28Nhoh3AMQMSj1gqKd3LzFnb/d8JK3ykyEnR/gFlt7Br81N5Q5plZwxtI3MbCPSEh3zHblo04d5hqoNNwy2z45X5Esw28Byj4yww5TIcKCWbBzp4W57Cw+WyYjLPJj4mg0tDbnf/CIUVVGdHQGPCyjJAZ1FzizBvt4r82nPqXqvavDXFgd8OBvostN9EnxP1BlNtJjftr5QhYQ5H9O93Q1DeULN5Bhf8qy8/1eoRL4XloP4OYABdj7U9PAAzqI0Zz2OEUmsyWPKWMXxaT6xzgxe8GvU3gi3vVscBU6WSlNH04WclkASyCCwPyvO94KmyFBli5Z5ZDb1nCV+ZJgyjpswzBsy1ckf0RwgLhPBpc1Cg09sUE8mYeVwB5Uy17omhKmfBrmUNKZn1HLkdtu2adO06foBwaf9f+qmP1JlpQFPuFWyspzi+zmDgpMbWTzMPDUUJ3nzXrMsiVb4lZIod/M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gr5tiCXrz/vExGT1SVb4ZFVWLC7yRInST1YSrHoXuzas31aIi53Ay1Qcvpw5Obe112F+oIoARa6n2STNCzgTZPQqHDWIlfvrj4S8myU2O7YpLTFgKeScFY5ZrnFCyeAP3THcC/Bw8h34Tq+9w/F3qSXqtjJQ0HyixkULWtGvmVS6/kprtOpOf/e0mnkokrakx5SJSJmGZmIbpfjtpRI0gKzK6frvMcqTcqoNTURdnQVTvzk7eqFZZoZ2Gl8CYWAqDe/25G9kLHK+tUUzitbCegcRyDKqcN3WSwiEw3I43b9M/XU+cKHSOqjCtjjkUNtF7FRRpQKRBD7Xk3dCLrOpBRwPKHl385xHGkJb2r3OJlTsoa2UEHjfgrdp6CH47D2uN65ITtnO2nIoB7zTHVpVmax2MZKZhEB//vRoNuXpRbGq/02XiXOKpGJ8wMbWQ18aCi1ugNQvhVAxjRLkRczC48aQ1xZ/dGH9s0KbwxbZNM7Wz/aYtsI7V5NfDde1VMiGEhtdwI= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ea07e3d-e011-4e4a-c005-08dc0c2bcbd3 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2158.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2024 07:15:42.3468 (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: Tbp3SAowtX4miAP07ybMbI+rm/4sXZSFyzAd6gkJjy6DVkp0brSts0oHwMpAz5TFJlgNXjthqKg28BBozQmMEQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6777 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-03_02,2024-01-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 bulkscore=0 phishscore=0 suspectscore=0 spamscore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401030059 X-Proofpoint-ORIG-GUID: ex_kkjJFpdx36ZbdqR-_jxFMbgqEUqCr X-Proofpoint-GUID: ex_kkjJFpdx36ZbdqR-_jxFMbgqEUqCr X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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 <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org |
Series |
Synthesize CFI for hand-written asm
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_binutils_build--master-arm | success | Testing passed |
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | success | Testing passed |
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 | success | Testing passed |
linaro-tcwg-bot/tcwg_binutils_check--master-arm | success | Testing passed |
Commit Message
Indu Bhagat
Jan. 3, 2024, 7:15 a.m. UTC
[No changes since V2] Move the following three defines to the header file, so the SCFI machinery can use them: - tc_cfi_frame_initial_instructions - tc_cfi_startproc - tc_cfi_endproc Although, the symthesized CFI cannot be emitted when CFI_EMIT_target is set, but in future, we may want to allow synthesized CFI to be emitted to all outputs currently supported by GAS for DWARF CFI. gas/ * dw2gencfi.c: Move from ... * dw2gencfi.h: ... to here. --- gas/dw2gencfi.c | 12 ------------ gas/dw2gencfi.h | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c index a69854ddc0c..cdef8d09978 100644 --- a/gas/dw2gencfi.c +++ b/gas/dw2gencfi.c @@ -64,18 +64,6 @@ #define EH_FRAME_ALIGNMENT (bfd_get_arch_size (stdoutput) == 64 ? 3 : 2) #endif -#ifndef tc_cfi_frame_initial_instructions -#define tc_cfi_frame_initial_instructions() ((void)0) -#endif - -#ifndef tc_cfi_startproc -# define tc_cfi_startproc() ((void)0) -#endif - -#ifndef tc_cfi_endproc -# define tc_cfi_endproc(fde) ((void) (fde)) -#endif - #define EH_FRAME_LINKONCE (SUPPORT_FRAME_LINKONCE || compact_eh \ || TARGET_MULTIPLE_EH_FRAME_SECTIONS) diff --git a/gas/dw2gencfi.h b/gas/dw2gencfi.h index aa8693df342..f574826456a 100644 --- a/gas/dw2gencfi.h +++ b/gas/dw2gencfi.h @@ -29,6 +29,18 @@ struct fde_entry; extern const pseudo_typeS cfi_pseudo_table[]; +#ifndef tc_cfi_frame_initial_instructions +#define tc_cfi_frame_initial_instructions() ((void)0) +#endif + +#ifndef tc_cfi_startproc +# define tc_cfi_startproc() ((void)0) +#endif + +#ifndef tc_cfi_endproc +# define tc_cfi_endproc(fde) ((void) (fde)) +#endif + /* cfi_finish() is called at the end of file. It will complain if the last CFI wasn't properly closed by .cfi_endproc. */ extern void cfi_finish (void);