From patchwork Tue Nov 15 08:14:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Zeng X-Patchwork-Id: 1648 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2583823wru; Tue, 15 Nov 2022 00:15:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf6YgaYG1I/Qwjn/m7xdqKoQzTCKPkLc2RoqR25N+JJ3XTeUMEHZpN0EDKtfdPicyCAKs0Qx X-Received: by 2002:a17:906:5e05:b0:7ae:21bc:89f0 with SMTP id n5-20020a1709065e0500b007ae21bc89f0mr12803818eju.132.1668500113954; Tue, 15 Nov 2022 00:15:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668500113; cv=none; d=google.com; s=arc-20160816; b=oa3diT71evGeDFznkRYkk4Oa/WSUMRVkElN9i1Rz7+egk33YYY8KAc1dMDH6rjmjwu tE8qLjSj9y4SOipDDy/7hw7kA4ZdheCXcdlxvY0qk9VyP8kugk7nCeqGTBltMZkrkZTy v9sjCt9ZNSi0yaGBELJ6x5gORVAkqzD53fq+nJAtFs8x7GpvWQ9Ym0lkz5Gl1X1KRFjj nbTeQ4kAvDh/BivR9DizBX9+EpxBTgHzcfM+BAy6nr4xDEM2DZBHEt/gCMqMGav5vgSQ gmgE37xy6EJKvD4QKBQ1qkQQ2e3x0zFl70DliBImJtOOdhPAnssp9s2MW5Xh1dS0rx0W zGMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dmarc-filter :delivered-to; bh=JUTiJ8JPcdNYQ1C0BxkrDI1aLTGTDOS424RRbInjaOE=; b=jv3sR77FodOePcKeAxBeVl4tRshod1IGWjD4ydy8XUXVLF2YIHcsc3tr4tdQ4uoL0C RKKXk0t2JB9ajrlxPvnxg+slOQSKkE5ydbkiTvyXOlk6StveSsEcWz9X50WLcanqwkCL vbbYmr5weMC3MpHJ0BlIMkvzceSDkD8riWvfvd/aWo4G4xjXGcHdPd5IbocEQAbo+oIC Hjd0wvW2q4QMfBejZY34pYQV7x/QRDutETW1MgY/udD29uWLvMcHkwRISioeeGdvDzoJ w76KEuuVenBQuxCBQOC0i/lhMa5igd6YK5YZ8lfbopkBMHh4HFXarZgn58CsdPCfDR7p zdsg== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id e16-20020a50ec90000000b00461f10cb543si8495125edr.154.2022.11.15.00.15.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 00:15:13 -0800 (PST) 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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E4FA0382D3BE for ; Tue, 15 Nov 2022 08:15:10 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from zg8tmja2lje4os4yms4ymjma.icoremail.net (zg8tmja2lje4os4yms4ymjma.icoremail.net [206.189.21.223]) by sourceware.org (Postfix) with SMTP id 841AE382E512 for ; Tue, 15 Nov 2022 08:15:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 841AE382E512 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=eswincomputing.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=eswincomputing.com Received: from user.DOMAINS (unknown [10.12.130.38]) by app2 (Coremail) with SMTP id EggMCgDnuC2CSnNjZIARAA--.12648S4; Tue, 15 Nov 2022 16:14:58 +0800 (CST) From: zengxiao@eswincomputing.com To: binutils@sourceware.org Cc: kito.cheng@gmail.com, andrew@sifive.com, shihua@iscas.ac.cn, zengxiao Subject: [PATCH v1 0/1] RISC-V: Make R_RISCV_SUB6 conforms to riscv abi standard Date: Tue, 15 Nov 2022 16:14:54 +0800 Message-Id: <20221115081455.2354987-1-zengxiao@eswincomputing.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CM-TRANSID: EggMCgDnuC2CSnNjZIARAA--.12648S4 X-Coremail-Antispam: 1UD129KBjvdXoWrZryrJrWrZryUuw4UGrWruFg_yoWfKrgEkw 1kZ34xG3y7GanFgayDAr1SvF98KrWxWr9avF15KF15ur4UX34Dt3yDGF10k3WUur1fJrWx GFWfCryIqa4qvjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUba8FF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwAKzVCY07xG64k0F24l c7CjxVAaw2AFwI0_JF0_Jw1lc2xSY4AK6svPMxAIw28IcxkI7VAKI48JMxC20s026xCaFV Cjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWl x4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r 1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_ JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcS sGvfC2KfnxnUUI43ZEXa7VUbZXo3UUUUU== X-CM-SenderInfo: p2hqw5xldrqvxvzl0uprps33xlqjhudrp/ X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, 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.29 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 Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749543650342761595?= X-GMAIL-MSGID: =?utf-8?q?1749549175648916621?= From: zengxiao Hi all RISC-V folks: When riscv-objdump is used to generate dwarf information, problems are found, like: DW_CFA_??? (User defined call frame op: 0x3c) This error is related to that riscv-objdump does not follow the riscv R_RISCV_SUB6 standard. Riscv-readelf is correct because it follows the R_RISCV_SUB6 standard. There are test cases in https://github.com/zeng-xiao/gnu-bug-fix/tree/main/EG-769 that describe the error in detail. zengxiao (1): RISC-V: Make R_RISCV_SUB6 conforms to riscv abi standard bfd/elfxx-riscv.c | 7 +++++ .../testsuite/binutils-all/riscv/dwarf-SUB6.d | 31 +++++++++++++++++++ .../testsuite/binutils-all/riscv/dwarf-SUB6.s | 12 +++++++ 3 files changed, 50 insertions(+) create mode 100644 binutils/testsuite/binutils-all/riscv/dwarf-SUB6.d create mode 100644 binutils/testsuite/binutils-all/riscv/dwarf-SUB6.s