From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +fs8Kqr652DTEQAAWB0awg (envelope-from ) for ; Fri, 09 Jul 2021 03:28:42 -0400 Received: by simark.ca (Postfix, from userid 112) id 911711F1F2; Fri, 9 Jul 2021 03:28:42 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_SIGNED, MAILING_LIST_MULTI,RDNS_DYNAMIC,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 2543B1E01F for ; Fri, 9 Jul 2021 03:28:41 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 40BD73AAB034 for ; Fri, 9 Jul 2021 07:28:40 +0000 (GMT) Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by sourceware.org (Postfix) with ESMTPS id ACC153858D39 for ; Fri, 9 Jul 2021 07:28:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ACC153858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-pj1-x102e.google.com with SMTP id oj11-20020a17090b4d8bb029017338c124dcso2882988pjb.0 for ; Fri, 09 Jul 2021 00:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hAhmdQ/aAbqNHGPZOAY3DDxPFm6Zo0eQJuP6rqrqipE=; b=XQnhCovFCVj2Eg7VzQNKPbvP0Go7YFtv5FN7M0vqX4BP/HFjMC7hQz1urXZInSs4J2 VpDs1McLZZ8GJF3+jHqIB0Xr+GYYer33Y68NRFcZNwlEPWoyhP0vbuqgGKrWrQAg2wAf oSmbAjvKBpwOpe77qRTsOG0ISxXCdw+oVH2llZw3VFuWN6G1AYsCy9VKlz1ZIqV502C3 KvzLCQys1V45++ghWhuHcO6w8k0DbYa3P53lqPT3xFC6FsT/YMMAZSZ+JwRNJSk+ipF7 KlYizlTocyeIGr6IFPTdIceb++EPQR8q6eCTJB5y2JCrUG6Nh2B2Mtn+s614vQukzeql eOow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hAhmdQ/aAbqNHGPZOAY3DDxPFm6Zo0eQJuP6rqrqipE=; b=X7RrJbuebqfl2ENdxCZmtVGC6rbZeJYyruCHkAjpyr0PGfZj9sic4bN8BonjUXUTeQ LYv9bydaFWvD6iBmTklYhZjfURb/TOtCIntMornjZV04+Xrg6fALKf2z7T+Y+rHFvZmv EyooGST40PrdP2pwpwsl7cY2mEkpHRdUu+cewCfxLco3MoaOYIJCXQ/8T1qA0aXB+PWw rNWz39H3Oh6OkoMC6PeMuSmA3NvBYzOcwSkTZjKzTdxHWD8o1y2ZaH4e8O6BQx5PvjwZ CUIU+vPfGX8Fr3QdVcG/o3FoU0a5oyjdUs0uxgjYuShZuyuAIAiJRdZW1M+Fn/gMCTsD 7HVA== X-Gm-Message-State: AOAM532t2KKFbOYNqiHKW48wwxaQCzOxLM5Y3121zUuwRqHz5QD4Fvui KWjg9ho6mqaDzHe37EOzFzJaAg== X-Google-Smtp-Source: ABdhPJzjs9wmZQhLVGmiWq0VOk4w5cn/KvgrRCJVTpkbJ8mCCltYZEl3keED3ISPYYRViMjKLjRtvQ== X-Received: by 2002:a17:902:b717:b029:11a:fae3:ba7c with SMTP id d23-20020a170902b717b029011afae3ba7cmr28895439pls.28.1625815708803; Fri, 09 Jul 2021 00:28:28 -0700 (PDT) Received: from gamma00.internal.sifive.com ([64.62.193.194]) by smtp.gmail.com with ESMTPSA id l2sm5130900pfc.157.2021.07.09.00.28.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jul 2021 00:28:28 -0700 (PDT) From: Nelson Chu To: binutils@sourceware.org, gdb-patches@sourceware.org, jimw@sifive.com, andrew.burgess@embecosm.com, kito.cheng@sifive.com, palmer@dabbelt.com, andrew@sifive.com Subject: [PATCH v2 0/3] RISC-V: The series to supporting mapping symbols Date: Fri, 9 Jul 2021 00:28:22 -0700 Message-Id: <20210709072825.13709-1-nelson.chu@sifive.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hi Guys, See in advance what are the difference with v1, * Support data mapping symbols with the data size, if they are added by cons_worker, e.g. $d2, $d4. * Support alignment mapping symbols, $a and $a1. If the instructions are used for alignment, then we dump them with the prefix align.. * Since the above two new features, we don't need to record all mapping symbols of the fragments. Instead, only record the first and last mapping symbols should be enough. * Extend .insn directive to support hardcode encoding. These are all binutils changes, but not sure if the changes will break the gdb disassembler. Unfortunately I am not familiar with gdb, hope gdb experts can give some suggestions, or warnings if something may be broken. Besides, the binutils readelf testcases in the second patch are affected by the first patch, so I send them as the same series. But in fact the first patch can be regarded as an independent issue. Therefore, I think we can commit it separately first, if everything looks good. The elf/linux toolchain regressions all passed, looks fine so far. Thanks Nelson