[go] cmd/link: ignore mapping symbols on riscv64

8 views
Skip to first unread message

Gerrit Bot (Gerrit)

unread,
May 3, 2025, 5:05:08 AMMay 3
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Gerrit Bot has uploaded the change for review

Commit message

cmd/link: ignore mapping symbols on riscv64

Specified in RISC-V ELF psABI[1], mapping symbols are symbols starting with "$d" or "$x" with STT_NOTYPE, STB_LOCAL and zero sizes, indicating boundaries between code and data in the same section.

Let's simply ignore them as they're only markers instead of real symbols. This fixes linking errors like

sym#63 ("$d"): ignoring symbol in section 4 (".riscv.attributes") (type 0)

when using CGO together with Clang and internal linker, which are caused by unnecessary (but technically correct) mapping symbols created by LLVM for various sections.

Fixes #73591

[1]: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/87aecf601722171c570120a46003be3c17ad3108/riscv-elf.adoc?plain=1#L1448
Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
GitHub-Last-Rev: a22540f859ca8cd598ca350bc77fad1a41108137
GitHub-Pull-Request: golang/go#73592

Change diff

diff --git a/src/cmd/link/internal/loadelf/ldelf.go b/src/cmd/link/internal/loadelf/ldelf.go
index 9f251e7..c91fed5 100644
--- a/src/cmd/link/internal/loadelf/ldelf.go
+++ b/src/cmd/link/internal/loadelf/ldelf.go
@@ -602,6 +602,14 @@
// See https://sourceware.org/bugzilla/show_bug.cgi?id=21809
continue
}
+
+ if arch.Family == sys.RISCV64 &&
+ (strings.HasPrefix(elfsym.name, "$d") || strings.HasPrefix(elfsym.name, "$x")) {
+ // Ignore RISC-V mapping symbols, which
+ // are similar to ARM64's case.
+ // See issue 73591.
+ continue
+ }
}

if strings.HasPrefix(elfsym.name, ".Linfo_string") {

Change information

Files:
  • M src/cmd/link/internal/loadelf/ldelf.go
Change size: XS
Delta: 1 file changed, 8 insertions(+), 0 deletions(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
Gerrit-Change-Number: 669675
Gerrit-PatchSet: 1
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
Gerrit-CC: Yao Zi <zi...@disroot.org>
unsatisfied_requirement
satisfied_requirement
open
diffy

Gopher Robot (Gerrit)

unread,
May 3, 2025, 5:05:11 AMMay 3
to Gerrit Bot, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Gopher Robot added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Gopher Robot . unresolved

I spotted some possible problems.

These findings are based on simple heuristics. If a finding appears wrong, briefly reply here saying so. Otherwise, please address any problems and update the GitHub PR. When complete, mark this comment as 'Done' and click the [blue 'Reply' button](https://go.dev/wiki/GerritBot#i-left-a-reply-to-a-comment-in-gerrit-but-no-one-but-me-can-see-it) above.

Possible problems detected:
1. Lines in the commit message should be wrapped at ~76 characters unless needed for things like URLs or tables. You have a 196 character line.
2. It looks like you have a properly formated bug reference, but the convention is to put bug references at the bottom of the commit message, even if a bug is also mentioned in the body of the message.

The commit title and commit message body come from the GitHub PR title and description, and must be edited in the GitHub web interface (not via git). For instructions, see [here](https://go.dev/wiki/GerritBot/#how-does-gerritbot-determine-the-final-commit-message). For guidelines on commit messages for the Go project, see [here](https://go.dev/doc/contribute#commit_messages).


(In general for Gerrit code reviews, the change author is expected to [log in to Gerrit](https://go-review.googlesource.com/login/) with a Gmail or other Google account and then close out each piece of feedback by marking it as 'Done' if implemented as suggested or otherwise reply to each review comment. See the [Review](https://go.dev/doc/contribute#review) section of the Contributing Guide for details.)

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
    Gerrit-Change-Number: 669675
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Yao Zi <zi...@disroot.org>
    Gerrit-Comment-Date: Sat, 03 May 2025 09:05:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Gopher Robot (Gerrit)

    unread,
    May 3, 2025, 5:06:23 AMMay 3
    to Gerrit Bot, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Message from Gopher Robot

    Congratulations on opening your first change. Thank you for your contribution!

    Next steps:
    A maintainer will review your change and provide feedback. See
    https://go.dev/doc/contribute#review for more info and tips to get your
    patch through code review.

    Most changes in the Go project go through a few rounds of revision. This can be
    surprising to people new to the project. The careful, iterative review process
    is our way of helping mentor contributors and ensuring that their contributions
    have a lasting impact.

    During May-July and Nov-Jan the Go project is in a code freeze, during which
    little code gets reviewed or merged. If a reviewer responds with a comment like
    R=go1.11 or adds a tag like "wait-release", it means that this CL will be
    reviewed as part of the next development cycle. See https://go.dev/s/release
    for more details.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
    Gerrit-Change-Number: 669675
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Yao Zi <zi...@disroot.org>
    Gerrit-Comment-Date: Sat, 03 May 2025 09:06:19 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Gerrit Bot (Gerrit)

    unread,
    May 3, 2025, 5:17:45 AMMay 3
    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
    Attention needed from Cherry Mui, Russ Cox and Than McIntosh

    Gerrit Bot uploaded new patchset

    Gerrit Bot uploaded patch set #2 to this change.
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Cherry Mui
    • Russ Cox
    • Than McIntosh
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: newpatchset
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
    Gerrit-Change-Number: 669675
    Gerrit-PatchSet: 2
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Cherry Mui <cher...@google.com>
    Gerrit-Reviewer: Russ Cox <r...@golang.org>
    Gerrit-Reviewer: Than McIntosh <th...@golang.org>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Yao Zi <zi...@disroot.org>
    Gerrit-Attention: Than McIntosh <th...@golang.org>
    Gerrit-Attention: Russ Cox <r...@golang.org>
    Gerrit-Attention: Cherry Mui <cher...@google.com>
    unsatisfied_requirement
    open
    diffy

    Gerrit Bot (Gerrit)

    unread,
    May 3, 2025, 5:24:01 AMMay 3
    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
    Attention needed from Cherry Mui, Russ Cox and Than McIntosh

    Gerrit Bot uploaded new patchset

    Gerrit Bot uploaded patch set #3 to this change.
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Cherry Mui
    • Russ Cox
    • Than McIntosh
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: newpatchset
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
    Gerrit-Change-Number: 669675
    Gerrit-PatchSet: 3
    unsatisfied_requirement
    open
    diffy

    Yao Zi (Gerrit)

    unread,
    May 3, 2025, 5:27:08 AMMay 3
    to Gerrit Bot, goph...@pubsubhelper.golang.org, Cherry Mui, Russ Cox, Than McIntosh, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Cherry Mui, Russ Cox and Than McIntosh

    Yao Zi added 1 comment

    Patchset-level comments
    File-level comment, Patchset 1:
    Gopher Robot . resolved

    I spotted some possible problems.

    These findings are based on simple heuristics. If a finding appears wrong, briefly reply here saying so. Otherwise, please address any problems and update the GitHub PR. When complete, mark this comment as 'Done' and click the [blue 'Reply' button](https://go.dev/wiki/GerritBot#i-left-a-reply-to-a-comment-in-gerrit-but-no-one-but-me-can-see-it) above.

    Possible problems detected:
    1. Lines in the commit message should be wrapped at ~76 characters unless needed for things like URLs or tables. You have a 196 character line.
    2. It looks like you have a properly formated bug reference, but the convention is to put bug references at the bottom of the commit message, even if a bug is also mentioned in the body of the message.

    The commit title and commit message body come from the GitHub PR title and description, and must be edited in the GitHub web interface (not via git). For instructions, see [here](https://go.dev/wiki/GerritBot/#how-does-gerritbot-determine-the-final-commit-message). For guidelines on commit messages for the Go project, see [here](https://go.dev/doc/contribute#commit_messages).


    (In general for Gerrit code reviews, the change author is expected to [log in to Gerrit](https://go-review.googlesource.com/login/) with a Gmail or other Google account and then close out each piece of feedback by marking it as 'Done' if implemented as suggested or otherwise reply to each review comment. See the [Review](https://go.dev/doc/contribute#review) section of the Contributing Guide for details.)

    Yao Zi

    I've reordered the reference link and the Fixes line. For 2, I've reformatted the long lines, but would like to keep format of the error log (output of go) as is.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Cherry Mui
    • Russ Cox
    • Than McIntosh
    Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement is not satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
      Gerrit-Change-Number: 669675
      Gerrit-PatchSet: 3
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Cherry Mui <cher...@google.com>
      Gerrit-Reviewer: Russ Cox <r...@golang.org>
      Gerrit-Reviewer: Than McIntosh <th...@golang.org>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Yao Zi <zi...@disroot.org>
      Gerrit-Attention: Than McIntosh <th...@golang.org>
      Gerrit-Attention: Russ Cox <r...@golang.org>
      Gerrit-Attention: Cherry Mui <cher...@google.com>
      Gerrit-Comment-Date: Sat, 03 May 2025 09:27:01 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Gopher Robot <go...@golang.org>
      unsatisfied_requirement
      satisfied_requirement
      open
      diffy

      Julian Zhu (Gerrit)

      unread,
      May 3, 2025, 7:17:59 AMMay 3
      to Gerrit Bot, goph...@pubsubhelper.golang.org, Joel Sing, Mark Ryan, Meng Zhuo, Cherry Mui, Russ Cox, Than McIntosh, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Joel Sing, Mark Ryan and Meng Zhuo

      Julian Zhu voted Commit-Queue+1

      Commit-Queue+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Joel Sing
      • Mark Ryan
      • Meng Zhuo
      Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement is not satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
      Gerrit-Change-Number: 669675
      Gerrit-PatchSet: 3
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Cherry Mui <cher...@google.com>
      Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
      Gerrit-Reviewer: Julian Zhu <jz53...@gmail.com>
      Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-Reviewer: Russ Cox <r...@golang.org>
      Gerrit-Reviewer: Than McIntosh <th...@golang.org>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Yao Zi <zi...@disroot.org>
      Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Attention: Joel Sing <jo...@sing.id.au>
      Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-Comment-Date: Sat, 03 May 2025 11:17:53 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      unsatisfied_requirement
      satisfied_requirement
      open
      diffy

      Meng Zhuo (Gerrit)

      unread,
      May 4, 2025, 12:57:00 AMMay 4
      to Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Joel Sing, Mark Ryan, Meng Zhuo, Julian Zhu, Cherry Mui, Russ Cox, Than McIntosh, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Joel Sing and Mark Ryan

      Meng Zhuo added 1 comment

      Patchset-level comments
      File-level comment, Patchset 3 (Latest):
      Meng Zhuo . resolved

      I think CL668516 has fixed this issue.
      p.s. this CL missed `.comment` and `.riscv.attibutes`

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Joel Sing
      • Mark Ryan
      Submit Requirements:
        • requirement is not satisfiedCode-Review
        • requirement satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        • requirement satisfiedTryBots-Pass
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: go
        Gerrit-Branch: master
        Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
        Gerrit-Change-Number: 669675
        Gerrit-PatchSet: 3
        Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
        Gerrit-Reviewer: Cherry Mui <cher...@google.com>
        Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
        Gerrit-Reviewer: Julian Zhu <jz53...@gmail.com>
        Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
        Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
        Gerrit-Reviewer: Russ Cox <r...@golang.org>
        Gerrit-Reviewer: Than McIntosh <th...@golang.org>
        Gerrit-CC: Gopher Robot <go...@golang.org>
        Gerrit-CC: Yao Zi <zi...@disroot.org>
        Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
        Gerrit-Attention: Joel Sing <jo...@sing.id.au>
        Gerrit-Comment-Date: Sun, 04 May 2025 04:56:52 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        unsatisfied_requirement
        satisfied_requirement
        open
        diffy

        Yao Zi (Gerrit)

        unread,
        May 4, 2025, 10:09:06 AMMay 4
        to Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Joel Sing, Mark Ryan, Meng Zhuo, Julian Zhu, Cherry Mui, Russ Cox, Than McIntosh, Gopher Robot, golang-co...@googlegroups.com
        Attention needed from Joel Sing and Mark Ryan

        Yao Zi added 1 comment

        Patchset-level comments
        Meng Zhuo . unresolved

        I think CL668516 has fixed this issue.
        p.s. this CL missed `.comment` and `.riscv.attibutes`

        Yao Zi

        No, it does take .comment and .riscv.attributes into account, please take a look at the referred issue where the message shows symbols from the two sections. And this patch eliminates all of the errors.

        IOW it will process all mapping symbols instead of only the ones in the two sections. Instead of hardcoding sections that may contain mapping symbols, I think it's the correct way to go.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Joel Sing
        • Mark Ryan
        Submit Requirements:
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          • requirement satisfiedTryBots-Pass
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: go
          Gerrit-Branch: master
          Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
          Gerrit-Change-Number: 669675
          Gerrit-PatchSet: 3
          Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
          Gerrit-Reviewer: Cherry Mui <cher...@google.com>
          Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
          Gerrit-Reviewer: Julian Zhu <jz53...@gmail.com>
          Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
          Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
          Gerrit-Reviewer: Russ Cox <r...@golang.org>
          Gerrit-Reviewer: Than McIntosh <th...@golang.org>
          Gerrit-CC: Gopher Robot <go...@golang.org>
          Gerrit-CC: Yao Zi <zi...@disroot.org>
          Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
          Gerrit-Attention: Joel Sing <jo...@sing.id.au>
          Gerrit-Comment-Date: Sun, 04 May 2025 14:08:57 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Meng Zhuo <mengzh...@gmail.com>
          unsatisfied_requirement
          satisfied_requirement
          open
          diffy

          Meng Zhuo (Gerrit)

          unread,
          May 6, 2025, 4:22:29 AMMay 6
          to Gerrit Bot, goph...@pubsubhelper.golang.org, Meng Zhuo, Go LUCI, Joel Sing, Mark Ryan, Julian Zhu, Cherry Mui, Russ Cox, Than McIntosh, Gopher Robot, golang-co...@googlegroups.com
          Attention needed from Joel Sing, Mark Ryan and Yao Zi

          Meng Zhuo voted and added 3 comments

          Votes added by Meng Zhuo

          Code-Review+2

          3 comments

          Patchset-level comments
          Meng Zhuo . resolved

          I think CL668516 has fixed this issue.
          p.s. this CL missed `.comment` and `.riscv.attibutes`

          Yao Zi

          No, it does take .comment and .riscv.attributes into account, please take a look at the referred issue where the message shows symbols from the two sections. And this patch eliminates all of the errors.

          IOW it will process all mapping symbols instead of only the ones in the two sections. Instead of hardcoding sections that may contain mapping symbols, I think it's the correct way to go.

          Meng Zhuo

          I see, I misread the `$x, a sequence of instructions.` part

          Meng Zhuo . resolved

          LGTM, only the fix issue has been closed due to duplication. Please update the issue number in the commit message.

          Commit Message
          Line 24, Patchset 3 (Latest):Fixes #73591
          Meng Zhuo . unresolved

          ```suggestion
          Fixes #73516
          ```

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Joel Sing
          • Mark Ryan
          • Yao Zi
          Submit Requirements:
          • requirement satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          • requirement satisfiedTryBots-Pass
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: go
          Gerrit-Branch: master
          Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
          Gerrit-Change-Number: 669675
          Gerrit-PatchSet: 3
          Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
          Gerrit-Reviewer: Cherry Mui <cher...@google.com>
          Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
          Gerrit-Reviewer: Julian Zhu <jz53...@gmail.com>
          Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
          Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
          Gerrit-Reviewer: Russ Cox <r...@golang.org>
          Gerrit-Reviewer: Than McIntosh <th...@golang.org>
          Gerrit-CC: Gopher Robot <go...@golang.org>
          Gerrit-CC: Yao Zi <zi...@disroot.org>
          Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
          Gerrit-Attention: Joel Sing <jo...@sing.id.au>
          Gerrit-Attention: Yao Zi <zi...@disroot.org>
          Gerrit-Comment-Date: Tue, 06 May 2025 08:22:22 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          Comment-In-Reply-To: Meng Zhuo <mengzh...@gmail.com>
          Comment-In-Reply-To: Yao Zi <zi...@disroot.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Gerrit Bot (Gerrit)

          unread,
          May 9, 2025, 11:02:23 AMMay 9
          to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
          Attention needed from Cherry Mui, Joel Sing, Julian Zhu, Mark Ryan, Meng Zhuo, Russ Cox, Than McIntosh and Yao Zi

          Gerrit Bot uploaded new patchset

          Gerrit Bot uploaded patch set #4 to this change.
          Following approvals got outdated and were removed:
          • TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Cherry Mui
          • Joel Sing
          • Julian Zhu
          • Mark Ryan
          • Meng Zhuo
          • Russ Cox
          • Than McIntosh
          • Yao Zi
          Submit Requirements:
            • requirement satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            • requirement is not satisfiedTryBots-Pass
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: newpatchset
            Gerrit-Project: go
            Gerrit-Branch: master
            Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
            Gerrit-Change-Number: 669675
            Gerrit-PatchSet: 4
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Cherry Mui <cher...@google.com>
            Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
            Gerrit-Reviewer: Julian Zhu <jz53...@gmail.com>
            Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
            Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
            Gerrit-Reviewer: Russ Cox <r...@golang.org>
            Gerrit-Reviewer: Than McIntosh <th...@golang.org>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-CC: Yao Zi <zi...@disroot.org>
            Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
            Gerrit-Attention: Joel Sing <jo...@sing.id.au>
            Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
            Gerrit-Attention: Than McIntosh <th...@golang.org>
            Gerrit-Attention: Russ Cox <r...@golang.org>
            Gerrit-Attention: Julian Zhu <jz53...@gmail.com>
            Gerrit-Attention: Yao Zi <zi...@disroot.org>
            Gerrit-Attention: Cherry Mui <cher...@google.com>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Gerrit Bot (Gerrit)

            unread,
            May 9, 2025, 11:09:47 AMMay 9
            to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
            Attention needed from Cherry Mui, Joel Sing, Julian Zhu, Mark Ryan, Meng Zhuo, Russ Cox, Than McIntosh and Yao Zi

            Gerrit Bot uploaded new patchset

            Gerrit Bot uploaded patch set #5 to this change.
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Cherry Mui
            • Joel Sing
            • Julian Zhu
            • Mark Ryan
            • Meng Zhuo
            • Russ Cox
            • Than McIntosh
            • Yao Zi
            Submit Requirements:
            • requirement satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            • requirement is not satisfiedTryBots-Pass
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: newpatchset
            Gerrit-Project: go
            Gerrit-Branch: master
            Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
            Gerrit-Change-Number: 669675
            Gerrit-PatchSet: 5
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Yao Zi (Gerrit)

            unread,
            May 9, 2025, 11:10:53 AMMay 9
            to Gerrit Bot, goph...@pubsubhelper.golang.org, Meng Zhuo, Go LUCI, Joel Sing, Mark Ryan, Julian Zhu, Cherry Mui, Russ Cox, Than McIntosh, Gopher Robot, golang-co...@googlegroups.com
            Attention needed from Cherry Mui, Joel Sing, Julian Zhu, Mark Ryan, Meng Zhuo, Russ Cox and Than McIntosh

            Yao Zi added 1 comment

            Commit Message
            Line 24, Patchset 3:Fixes #73591
            Meng Zhuo . resolved

            ```suggestion
            Fixes #73516
            ```

            Yao Zi

            ```suggestion
            Fixes #73516
            ```

            Thanks, I've updated the referred issue.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Cherry Mui
            • Joel Sing
            • Julian Zhu
            • Mark Ryan
            • Meng Zhuo
            • Russ Cox
            • Than McIntosh
            Submit Requirements:
            • requirement satisfiedCode-Review
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            • requirement is not satisfiedTryBots-Pass
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: go
            Gerrit-Branch: master
            Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
            Gerrit-Change-Number: 669675
            Gerrit-PatchSet: 5
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Cherry Mui <cher...@google.com>
            Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
            Gerrit-Reviewer: Julian Zhu <jz53...@gmail.com>
            Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
            Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
            Gerrit-Reviewer: Russ Cox <r...@golang.org>
            Gerrit-Reviewer: Than McIntosh <th...@golang.org>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-CC: Yao Zi <zi...@disroot.org>
            Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
            Gerrit-Attention: Joel Sing <jo...@sing.id.au>
            Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
            Gerrit-Attention: Than McIntosh <th...@golang.org>
            Gerrit-Attention: Russ Cox <r...@golang.org>
            Gerrit-Attention: Julian Zhu <jz53...@gmail.com>
            Gerrit-Attention: Cherry Mui <cher...@google.com>
            Gerrit-Comment-Date: Fri, 09 May 2025 15:10:45 +0000
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Cherry Mui (Gerrit)

            unread,
            May 9, 2025, 11:18:28 AMMay 9
            to Gerrit Bot, goph...@pubsubhelper.golang.org, Meng Zhuo, Go LUCI, Joel Sing, Mark Ryan, Julian Zhu, Russ Cox, Than McIntosh, Gopher Robot, golang-co...@googlegroups.com
            Attention needed from Joel Sing, Julian Zhu, Mark Ryan, Meng Zhuo, Russ Cox and Than McIntosh

            Cherry Mui voted Code-Review+2

            Code-Review+2
            Open in Gerrit

            Related details

            Attention is currently required from:
            Gerrit-Comment-Date: Fri, 09 May 2025 15:18:22 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Cherry Mui (Gerrit)

            unread,
            May 9, 2025, 11:18:41 AMMay 9
            to Gerrit Bot, goph...@pubsubhelper.golang.org, Meng Zhuo, Go LUCI, Joel Sing, Mark Ryan, Julian Zhu, Russ Cox, Than McIntosh, Gopher Robot, golang-co...@googlegroups.com
            Attention needed from Joel Sing, Julian Zhu, Mark Ryan, Meng Zhuo, Russ Cox and Than McIntosh

            Cherry Mui voted Commit-Queue+1

            Commit-Queue+1
            Gerrit-Comment-Date: Fri, 09 May 2025 15:18:36 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Michael Knyszek (Gerrit)

            unread,
            May 12, 2025, 10:32:48 AMMay 12
            to Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Cherry Mui, Meng Zhuo, Joel Sing, Mark Ryan, Julian Zhu, Russ Cox, Than McIntosh, Gopher Robot, golang-co...@googlegroups.com
            Attention needed from Joel Sing, Julian Zhu, Mark Ryan, Meng Zhuo, Russ Cox and Than McIntosh

            Michael Knyszek voted Code-Review+1

            Code-Review+1
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Joel Sing
            • Julian Zhu
            • Mark Ryan
            • Meng Zhuo
            • Russ Cox
            • Than McIntosh
            Submit Requirements:
              • requirement satisfiedCode-Review
              • requirement satisfiedNo-Unresolved-Comments
              • requirement satisfiedReview-Enforcement
              • requirement satisfiedTryBots-Pass
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: go
              Gerrit-Branch: master
              Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
              Gerrit-Change-Number: 669675
              Gerrit-PatchSet: 5
              Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
              Gerrit-Reviewer: Cherry Mui <cher...@google.com>
              Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
              Gerrit-Reviewer: Julian Zhu <jz53...@gmail.com>
              Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
              Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
              Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
              Gerrit-Reviewer: Russ Cox <r...@golang.org>
              Gerrit-Reviewer: Than McIntosh <th...@golang.org>
              Gerrit-CC: Gopher Robot <go...@golang.org>
              Gerrit-CC: Yao Zi <zi...@disroot.org>
              Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
              Gerrit-Attention: Joel Sing <jo...@sing.id.au>
              Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
              Gerrit-Attention: Than McIntosh <th...@golang.org>
              Gerrit-Attention: Russ Cox <r...@golang.org>
              Gerrit-Attention: Julian Zhu <jz53...@gmail.com>
              Gerrit-Comment-Date: Mon, 12 May 2025 14:32:43 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              open
              diffy

              Meng Zhuo (Gerrit)

              unread,
              May 12, 2025, 11:24:08 PMMay 12
              to Gerrit Bot, Meng Zhuo, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Michael Knyszek, Go LUCI, Cherry Mui, Joel Sing, Mark Ryan, Julian Zhu, Russ Cox, Than McIntosh, Gopher Robot, golang-co...@googlegroups.com

              Meng Zhuo submitted the change

              Change information

              Commit message:
              cmd/link: ignore mapping symbols on riscv64

              Specified in RISC-V ELF psABI[1], mapping symbols are symbols starting
              with "$d" or "$x" with STT_NOTYPE, STB_LOCAL and zero sizes, indicating
              boundaries between code and data in the same section.

              Let's simply ignore them as they're only markers instead of real symbols.
              This fixes linking errors like

              sym#63 ("$d"): ignoring symbol in section 4 (".riscv.attributes") (type 0)

              when using CGO together with Clang and internal linker, which are caused
              by unnecessary (but technically correct) mapping symbols created by LLVM
              for various sections.

              Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
              GitHub-Last-Rev: d7842ceafb840c511cf0c36295c353698898d399
              GitHub-Pull-Request: golang/go#73592
              Reviewed-by: Cherry Mui <cher...@google.com>
              Reviewed-by: Meng Zhuo <mengzh...@gmail.com>
              Reviewed-by: Michael Knyszek <mkny...@google.com>
              Files:
              • M src/cmd/link/internal/loadelf/ldelf.go
              Change size: XS
              Delta: 1 file changed, 8 insertions(+), 0 deletions(-)
              Branch: refs/heads/master
              Submit Requirements:
              • requirement satisfiedCode-Review: +2 by Cherry Mui, +2 by Meng Zhuo, +1 by Michael Knyszek
              • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
              Open in Gerrit
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: merged
              Gerrit-Project: go
              Gerrit-Branch: master
              Gerrit-Change-Id: I02ca90c100ba8a38733fe3b8b8403836b44a3dd1
              Gerrit-Change-Number: 669675
              Gerrit-PatchSet: 6
              open
              diffy
              satisfied_requirement
              Reply all
              Reply to author
              Forward
              0 new messages