From patchwork Tue Nov 15 08:09:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Zeng X-Patchwork-Id: 1647 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2582136wru; Tue, 15 Nov 2022 00:10:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf6p5XS9wk7J+zRz8xEVCKym2oS7TEUkaTLbaF9YVZlcroE1sDmgCOkD+R7ozJ8AncXnIwGB X-Received: by 2002:a17:906:388c:b0:7aa:97c7:2c04 with SMTP id q12-20020a170906388c00b007aa97c72c04mr12990991ejd.191.1668499826758; Tue, 15 Nov 2022 00:10:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668499826; cv=none; d=google.com; s=arc-20160816; b=f9gxwZNamg6c5T2LoXjaqK8o1TRvkFCVGJb87/so+tv9dFR1fF1Y2iJGn5g233K64v x41UmIie3UOwpYNEkHA5Rd3K0RnsJm8O38RbrNQQtrhdc3cfJNCHuuLGy4uJXKmKbESS l6QnrUk1D1tbMHmEq95tZB7nQvvPqeR8RYCe5YDubxOy4P4NI0STg7UA8+ggKQCAuP/g VChMIjp9CDtQPENd7dLvBFM18ZBZxv+5PTCuaW3WhIs5R+GMCtBh7C5Rvx8P+0EPxMmn QnjhXGXiZR2T7ly6iWoX1XoNSKDSFeLdNPQlcRfbKcKYZyYRGz6mdaq/EbGzp/6mW8fA VCeA== 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=Zc0GR0StF1zvFUKnlLtO5+OMopZAdcPMwHuKziyVfWkiehabEd1kP/PUj7wPbg6FRj h+Vb/h7YJMTanSbhNmtJdy3R0+6kIpP7WB66WXxktXNqvEUyJBFKJXAguC8EW/tc55ju FNqWK6WptKbKWAePWBJyh2A/Q8280OVv7BNO1hu4ZDd2VQj6ECJ9GUji5AX5kJdgpsJd yuSuEjZPGQXhULvyNKOSi6B9MmyGtMaTqSXlCYszCBQk2w/ZVb4Bnw3yBdEzTi26/rD/ 8KGXRoMIfYhaQkzQH1YyfNGmkXl4oNU0N1GmmrHEpAwb1NkYvi7vAQV09nte7Sga2edI Qlcw== 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 (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id br13-20020a170906d14d00b0078db6f488cesi8963222ejb.112.2022.11.15.00.10.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 00:10:26 -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 EBDCB3889E16 for ; Tue, 15 Nov 2022 08:10:10 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from zg8tmja5ljk3lje4ms43mwaa.icoremail.net (zg8tmja5ljk3lje4ms43mwaa.icoremail.net [209.97.181.73]) by sourceware.org (Postfix) with SMTP id 145A9382D390 for ; Tue, 15 Nov 2022 08:09:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 145A9382D390 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 EggMCgDHpS84SXNjI4ARAA--.53929S4; Tue, 15 Nov 2022 16:09:28 +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 Subject: [PATCH, V1 0/1] RISC-V: Make R_RISCV_SUB6 conforms to riscv abi standard Date: Tue, 15 Nov 2022 16:09:24 +0800 Message-Id: <20221115080925.2354502-1-zengxiao@eswincomputing.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CM-TRANSID: EggMCgDHpS84SXNjI4ARAA--.53929S4 X-Coremail-Antispam: 1UD129KBjvdXoWrZryrJrWrZryUuw4UGrWruFg_yoWfKrgEkw 1kZ34xG3y7GanFgayDAr1SvF98KrWxWr9avF15KF15ur4UX34Dt3yDGF10k3WUur1fJrWx GFWfCryIqa4qvjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbxkFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwAKzVCY07xG64k0F24l c2xSY4AK6svPMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I 8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWU twCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x 0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_ Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUb veHDUUUUU== X-CM-SenderInfo: p2hqw5xldrqvxvzl0uprps33xlqjhudrp/ X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749543650342761595?= X-GMAIL-MSGID: =?utf-8?q?1749548874511642995?= 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