| Message ID | 20251202073414.200246-4-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 vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E09C94BB58DB for <patchwork@sourceware.org>; Tue, 2 Dec 2025 07:36:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E09C94BB58DB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1764660995; bh=DAHhxsM8Q/ALPbyLxb7i6foRQou6xwIRLv3W9OuCs2U=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=wvt1CdkLIaSIuChWxmaH5HmEwkZZejgNsTtlDUpc/zsfuJUc2GpYstyY14UaqAqeb qsNGCCTqCNtMINJp6gtiiBxdsNOxt5MUvC3mzFBtsETNWJb8kRqiVz/NBNVdzWWxBR S2yif3wn2nX1WdFs9+GnkSTY1FhPGm4Uh3L/rNSU= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id F26824BB3BD0 for <binutils@sourceware.org>; Tue, 2 Dec 2025 07:34:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F26824BB3BD0 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F26824BB3BD0 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1764660875; cv=pass; b=UjeA9bk1yeoNLlmJ/ul4Zz01uqB1TVG5AFy2LVUas1EeI1ag3GIpzOYM6b0mVVKQs4tPd5JZpv1wtUwqV0GKk5vZfYTNm9fgz3bWlcbJxFEqDUy0pbbWU/TGpq6GZv56hoeYOWBJkpd3Nry8h6yoOHNsmykIQUwFvvbgcamI1aM= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1764660875; c=relaxed/simple; bh=NKeUbvQgz/NqoN0HMhRLJ7e8sfOpo9drw00UgVdEppw=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=sOFn40APGm7xo89Yf1HCikeGO0g6xTJUaYBjoOKbEBq3a/tm+EH1j2yu3B3UycU5sWSeeCq3xJTY4Wjq7wxOqxO0Q3iD9irTH+weZfGm6IYxkOPR9RKS64j/PSc+qHXVxw3JQBI6iyX7sBdiKwBH4paNB8gUt3A/aYqKn7Yu59Y= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F26824BB3BD0 Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5B21NK403372660 for <binutils@sourceware.org>; Tue, 2 Dec 2025 07:34:34 GMT Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4as6v3abd7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Tue, 02 Dec 2025 07:34:33 +0000 (GMT) Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 5B260LLv035406 for <binutils@sourceware.org>; Tue, 2 Dec 2025 07:34:32 GMT Received: from sa9pr02cu001.outbound.protection.outlook.com (mail-southcentralusazon11013018.outbound.protection.outlook.com [40.93.196.18]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 4aqq9k1qs6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Tue, 02 Dec 2025 07:34:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xLhFH8fOggy1KOlLvYZ2tvVCrTrMEAAB0m/tavdn/9qpVRbVyyHBAexj8GAieXLge1n+XBOm2Q5U11zMGaZoh/Md8/rZjUX00HF9l/nNIcifYdWP9MmBxV+HUEjzbWOJGAvuGomz/tthc3sd4mnXJRMwGQHUJbI0P4JeGx0vqnMpBmcByOcGJj7NIj8m1FZ5+wFNvbvpAj39XNKZ1B0w2C+8u9Hl9URyIGZIF0dudzplJhEDgWJ8cJEQjcWm9izKWgz47XZGhQ9INa8AU5ccNSxbAl66ylvyXsBjATlQo7qpqUSw004JvE4rliH1YBVx7CcIDwTCK/OhQIYyrcqyRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=DAHhxsM8Q/ALPbyLxb7i6foRQou6xwIRLv3W9OuCs2U=; b=t6AgVJksdGzXggoRKmamnPPdAjsqMD/cb8mfpBIBul9WV2aEBG573GN7DFDn9Qzz7J748+tIfQ68taXnJVBXOCU1568GMEBDWuJ5342w1hRDtzaSuP8QD1kPjQ+e6+MtKnzljJb5yBKUEcYObhel6O1IAfExoeCor1AFRnG7HqjRcJ4VoeNg32JdgfFEuCtDrf3HN6vKqyCh2Ipoz8hTPNyrPU29e2EoeO+eEylwHvCoU6gjmR7NNTk+kfUgha9l6kF5/blHdJXbGNi+2JcNtu0T6cPnjyT32QpFRiw1czTs4VM+gllpSDWI09Iyog0PoK12BLdZJxzEC5WIAjDmcA== 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 Received: from SA1PR10MB6365.namprd10.prod.outlook.com (2603:10b6:806:255::12) by PH8PR10MB6456.namprd10.prod.outlook.com (2603:10b6:510:22c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9366.17; Tue, 2 Dec 2025 07:34:28 +0000 Received: from SA1PR10MB6365.namprd10.prod.outlook.com ([fe80::81bb:1fc4:37c7:a515]) by SA1PR10MB6365.namprd10.prod.outlook.com ([fe80::81bb:1fc4:37c7:a515%5]) with mapi id 15.20.9366.012; Tue, 2 Dec 2025 07:34:27 +0000 To: binutils@sourceware.org Cc: Indu Bhagat <indu.bhagat@oracle.com> Subject: [PATCH 03/13] gas: sframe: ignore .cfi_offset for RA selectively Date: Mon, 1 Dec 2025 23:34:04 -0800 Message-ID: <20251202073414.200246-4-indu.bhagat@oracle.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251202073414.200246-1-indu.bhagat@oracle.com> References: <20251202073414.200246-1-indu.bhagat@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW4PR03CA0066.namprd03.prod.outlook.com (2603:10b6:303:b6::11) To SA1PR10MB6365.namprd10.prod.outlook.com (2603:10b6:806:255::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA1PR10MB6365:EE_|PH8PR10MB6456:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b57550d-d2ea-4510-0640-08de3175396d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|376014|1800799024|10070799003; X-Microsoft-Antispam-Message-Info: SWgp0qPkijumktlepbe9CKThLGjxx3Q0CiFbEk2eseyxdj0R9Ym3iFByKIjvana1/7y0f3XbnDbq3flM4/aQrQ8/v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htF2PqFsAUEhDoLJvhARe8CodXjX5lTlaDsKhQRWn9HpBXxm3j6zQiIs4MdpFJZqII3yFg1aWxEqTixaGeOCN+qhdfk2G5X85IQW4XIHvrj6i53Hc13r/j6WfrX2+9u2U/tg9IyaHAV4zBWmdErJHR2m+JjvTy0wYqrMqI6tEnm8qlWNLI1x/T+qtTDYuoySznLTlI+zvBsfGts/H0BElD73ZLNkV+3jcRJC1PoTg6BFyFDGHAYpKjX7UfGTKzX9iQNb+HA2D+pvARApLuBx4ex/9rEueT3AZ63oEXHM28J7w X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA1PR10MB6365.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(10070799003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /9Kt2JaI5vDPS0I4KdYHJV6uoFtA/r0jNMF6S7k3BqT44lp1z81BLkrWoGXF9q/2EbtwMvXwqiVn5yifVWZbub78cAn/GtWM7Sy6Q0XKWYOFuKHQjgCJtSmEYDRI7Kdp8P+Q43fNn2RVIopreVTTpfbUiZSIbLX9i8xNqrX/4XkLi3329kkOsozvdp8KxztTDHctb6rsgAouA/9BLwknDULF2pYGYiXXIMLy6xAmJV0+6Gj8wtX7LOEE35TuSrXi44Lp0nkWa5PrXP5QgvDi7pDF7TBZxPo6PR3MFsz7buxnDUmJdIO4RREcscvIzgm6jBWVHFTSpY7j+f4jUHXwdjwZ4okgf9sAc/3x3Vm6EeeEV/BE4xGdx+WbYLfp6Jli4AWKBkC/KY7fdoPIkQ1nXj5YcirSMD2H2Wfi1MGhTj+FZCS3zzO65o99BH5Y36CZ2qUX47dpTQuRlSwjylnpCVhrQbRF+6jgiHlSpJhQLDqMETik1yppsg1Ru5fJsQnQPK8iA9E5xFNBQJrVikfoE/Tr8to/QgqzLpRzyw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Id7ePd8ygckcsKQUDc= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: DS0Vi1Yp5I8pfRQXNlFhE7azjRAXnTNQP/WZ1TOZ8pkDBXiCaepIOAgI5CT6UJAE/FPwFIfsefEK5/y1ilfyhQBUWbio5My51WejDMhh5pSUSgBcP5m/dVFZOizYuUjw4/zgvkCDfIWlzkDdQ4dxw3dR3BUXadnzeKT7P1rhY46SFT7OKGpw6xgrah0kRM7CYBHQVpeWRkDQzzEpblSds9YGiwohJ91kdFWiNnCgiuEyG5MMtz5PUfE0ecFevLFRAgGwR9kgbqOK6vvsiD1eDdhHrWQqy5XnSi+r4VzGnBZMWjzsull90yTgAo9J9mk31y3MVrglnDUNPyy90Y8hvQ6r6wjgEs39jLr3kJoDvvIMwznb/riVi8ce3FalqAzpWCJh+90EvvP5TLFO0AKf13aFNoF07hOnrZjjHeUdbYoMK0YwNwq2RYYJ6RC+Nr/JQJq1usrhU1bmLXHx/bIoCgriyGG+QW3IFdZBYxqOHCsxfnNSuX1J13Toub9eyb8y45U47Nbj1nB0FLaS+QZZElBPTdRpAe8n9glo0Yvr7anmMhwGgl4TBeyj+Wcs2NEIAYWyea8jtkAhOvGTtfxBfjz3qbSP+tJg8bSWJdoYrj4= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b57550d-d2ea-4510-0640-08de3175396d X-MS-Exchange-CrossTenant-AuthSource: SA1PR10MB6365.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2025 07:34:27.9372 (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: HpCXGrgVobrhB29UdZBO43IO65/aW1NKP5mmckyO8gQbJiBYYf2xgePXh+FfAi9Kt1gTfy4z7Ehr/i/F16ey1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR10MB6456 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-28_08,2025-11-27_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 spamscore=0 mlxscore=0 adultscore=0 bulkscore=0 phishscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2510240000 definitions=main-2512020059 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjAyMDA1OSBTYWx0ZWRfX3jQPVEV80Jkc DxeZxyw/+u1AVgGg1fdksrLQ+N0Bg4nFoSs4fp1N3DJ/3eBEMo1m/lBIaHbH6ATCBrxTshwyUSY feRZTLWFaVTrFk+HOEAoiTpivujDtU/nqT/LiRtzqbzVbnVpP8+H0aXrb7OCHgBPD/E1rJ3EfQM tjIV55LYzR6VDx3m7G+skb+RHXOAI+Cu5YjT6vrbg0m0qoaaP85UKyYD+FhARJoGJFlxByYzP/s yw/50S4rUXBZX/eYZnLiYX1ZwngRSQOkXzG2gFjxhPn2y1EP3wlCFm/GBxS5vMTJlRA1JDgFplz Un6QnAOHbTS6L3cSFD9q5H2dOob0khhfWbjUpLFOQNkR68EM+3k6LUMGXRXWzK4P/8dhpAiTjmM 4AucuPxFU1b6AosZDD8+NwWzvWn1LANGDRXs5lzVQj0HJ1AKlIo= X-Authority-Analysis: v=2.4 cv=fqjRpV4f c=1 sm=1 tr=0 ts=692e9689 b=1 cx=c_pps a=e1sVV491RgrpLwSTMOnk8w==:117 a=e1sVV491RgrpLwSTMOnk8w==:17 a=6eWqkTHjU83fiwn7nKZWdM+Sl24=:19 a=z/mQ4Ysz8XfWz/Q5cLBRGdckG28=:19 a=lCpzRmAYbLLaTzLvsPZ7Mbvzbb8=:19 a=xqWC_Br6kY4A:10 a=wP3pNCr1ah4A:10 a=GoEa3M9JfhUA:10 a=VkNPw1HP01LnGYTKEx00:22 a=iHlBgp9X5xcHgIPW4REA:9 cc=ntf awl=host:13642 X-Proofpoint-GUID: Pn762IMbZesUkMezQvaKRRvzF0SIybpg X-Proofpoint-ORIG-GUID: Pn762IMbZesUkMezQvaKRRvzF0SIybpg X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, 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 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> From: Indu Bhagat via Binutils <binutils@sourceware.org> Reply-To: Indu Bhagat <indu.bhagat@oracle.com> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
sframe: some refactoring and misc improvements
|
|
Commit Message
Indu Bhagat
Dec. 2, 2025, 7:34 a.m. UTC
For ABIs not tracking RA (e.g., AMD64), the return address is expected
to be in a specific location (usually a fixed offset from CFA on stack).
Explicit manourvering to a different offset may be non-representable in
SFrame, and should not be simply ignored.
Although such patterns are not usually seen in the wild, it is more
correct to catch them if at all they manifest.
gas/
* gen-sframe.c (sframe_xlate_do_offset): Do not ignore
.cfi_offset for RA all the time.
---
gas/gen-sframe.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gas/gen-sframe.c b/gas/gen-sframe.c index eead58b00f6..f39b4f495b4 100644 --- a/gas/gen-sframe.c +++ b/gas/gen-sframe.c @@ -1179,8 +1179,19 @@ sframe_xlate_do_offset (struct sframe_xlate_ctx *xlate_ctx, being interpreted. This FRE eventually gets linked in into the list of FREs for the specific function. */ struct sframe_row_entry *cur_fre = xlate_ctx->cur_fre; - gas_assert (cur_fre); + + /* For ABIs not tracking RA, the return address is expected to be in a + specific location. Explicit manourvering to a different offset (than the + default offset) is non-representable in SFrame. */ + if (!sframe_ra_tracking_p () && cfi_insn->u.ri.reg == SFRAME_CFA_RA_REG + && cfi_insn->u.ri.offset != sframe_cfa_ra_offset ()) + { + as_warn (_("no SFrame FDE emitted; %s register %u in .cfi_offset"), + sframe_register_name (cfi_insn->u.ri.reg), cfi_insn->u.ri.reg); + return SFRAME_XLATE_ERR_NOTREPRESENTED; /* Not represented. */ + } + /* Change the rule for the register indicated by the register number to be the specified offset. */ /* Ignore SP reg, as it can be recovered from the CFA tracking info. */