Skip to content

upgpatch: go 2:1.21.1-1 #2957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 12, 2023
Merged

upgpatch: go 2:1.21.1-1 #2957

merged 1 commit into from
Sep 12, 2023

Conversation

Xeonacid
Copy link
Collaborator

Workaround for AUIPC+JALR optimized as deadcode, which causes:

github.com/aws/aws-sdk-go/aws/endpoints.init: missing section for github.com/aws/aws-sdk-go/aws/endpoints.map.init.0
github.com/aws/aws-sdk-go/aws/endpoints.init: reloc 62 (R_RISCV_PCREL_ITYPE) to non-elf symbol github.com/aws/aws-sdk-go/aws/endpoints.map.init.0 (outer=github.com/aws/aws-sdk-go/aws/endpoints.map.init.0) 1 (STEXT)
github.com/aws/aws-sdk-go/aws/endpoints.init: unreachable reloc 62 (R_RISCV_PCREL_ITYPE) target github.com/aws/aws-sdk-go/aws/endpoints.map.init.0

This workaround skips the check which would disable the deadcode optimization (in some cases). We should replace with a patch after upstream really fixes.

Packages like pint builds passed now.

Upstream issue: golang/go#62465

Signed-off-by: Xeonacid <[email protected]>
@felixonmars felixonmars merged commit 3ae0c14 into felixonmars:master Sep 12, 2023
@Xeonacid Xeonacid deleted the go branch September 12, 2023 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants