Message ID | 20221115065159.2353620-1-zengxiao@eswincomputing.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2555689wru; Mon, 14 Nov 2022 22:52:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf5C1lHt6illuGORbiIBpy2Ce8yNzJD27gBYklF3D+G1BM0p5kSEwLfMiGMs0r2dppeHhSR1 X-Received: by 2002:a17:907:210d:b0:7ae:25ba:5e4b with SMTP id qn13-20020a170907210d00b007ae25ba5e4bmr12863138ejb.724.1668495157514; Mon, 14 Nov 2022 22:52:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668495157; cv=none; d=google.com; s=arc-20160816; b=dUwD3mwhb81H4OH1c6Fei7jSrHvz3l6IZyck+Na/dlmNF0NJiYX0m210YaXnOmkIvY V1oA2tpCqKSbW+NsUxAZ7hp+/kGqJ5038Hf7nISyIR5+nWa27XxXEJgrepYIGfnvNiST ySaEQtMQqVEzY/MtNqFp8qDAmtXjVKt+LLo+VwJmHhugmOGvYATKdiIk+j4JpdABtUu2 hKtlOI8Xq1SR5SsVPDthdAoiyS6JfcTUhQWnQtepWlXZfjCakf3tAd+UCTwn8HIQ0CIn buDUQBB7pVkVXo3pb542yCL1Q1F9SkbDkbjaBxYCns4lxrK16JDUxRXNp5DtSMjD7DBP 4rgg== 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=E0NpP+efoWocF4fhJIwc1L3t0Q8nKzGkQr3JyvX2P9CDwvdJQkFT0hwk3yLQz7RCi7 8QG5XKuf02QpI3PGJN0Zx4wpiBf+XMERLZfBNRc5hmWcs7fphB9awUt/sEybMzaEIgmg 1XEVM9G7IW3NCzg3N4G/f8mrO4l968kn1K7tWh7dutQNvc31nper1oe/vUArGT0/s1hd auUJUG6Q1k29d07In3jThcB3HE/PWjKQUtQm/UewpDg1SDqKmAkONvMS6fKx4fDJTr/z aG2mLf08jiUuRA/Ieok/WYC1lYewa1GipNkfWA/TBFc98xHde6fXYQvi+xbGq0GW6NlB a6XQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id hd39-20020a17090796a700b007acf3aed468si11027010ejc.786.2022.11.14.22.52.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 22:52:37 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.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 gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B9A31382EF17 for <ouuuleilei@gmail.com>; Tue, 15 Nov 2022 06:52:35 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from zg8tmtm4lje5ny4xodqumjaa.icoremail.net (zg8tmtm4lje5ny4xodqumjaa.icoremail.net [138.197.184.20]) by sourceware.org (Postfix) with SMTP id 8771A3830B3C for <gcc-patches@gcc.gnu.org>; Tue, 15 Nov 2022 06:52:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8771A3830B3C 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 app1 (Coremail) with SMTP id EwgMCgB3PYYSN3NjF40RAA--.59816S4; Tue, 15 Nov 2022 14:52:03 +0800 (CST) From: zengxiao@eswincomputing.com To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, andrew@sifive.com, shihua@iscas.ac.cn, zengxiao <zengxiao@eswincomputing.com> Subject: [PATCH, V1 0/1] RISC-V: Make R_RISCV_SUB6 conforms to riscv abi standard Date: Tue, 15 Nov 2022 14:51:58 +0800 Message-Id: <20221115065159.2353620-1-zengxiao@eswincomputing.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: EwgMCgB3PYYSN3NjF40RAA--.59816S4 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.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_RPBL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749543650342761595?= X-GMAIL-MSGID: =?utf-8?q?1749543978028833347?= |
Series |
RISC-V: Make R_RISCV_SUB6 conforms to riscv abi standard
|
|
Message
Xiao Zeng
Nov. 15, 2022, 6:51 a.m. UTC
From: zengxiao <zengxiao@eswincomputing.com>
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