-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
[RISCV] Clang-16 regressing build of inline assembly with Unsupported relocation type #61412
Comments
|
@llvm/issue-subscribers-backend-risc-v |
Reproduced on current HEAD. Here is the version of the posted test case in .text
.attribute 4, 16
.attribute 5, "rv64i2p0_m2p0_a2p0_c2p0"
.file "t.c"
.globl foo
.p2align 1
.type foo,@function
foo:
addi sp, sp, -16
sd ra, 8(sp)
sd s0, 0(sp)
addi s0, sp, 16
#APP
.type _frr_xref_note,@object
.section .note.FRR,"a",@note
.p2align 2, 0x0
_frr_xref_note:
.word 9
.word 16
.ascii "XREF"
.asciz "FRRouting\000\000"
.Ltmp0:
.quad __start_xref_array-.Ltmp0
.Ltmp1:
.quad __stop_xref_array-.Ltmp1
.Ltmp2:
.size _frr_xref_note, .Ltmp2-_frr_xref_note
.text
#NO_APP
ld ra, 8(sp)
ld s0, 0(sp)
addi sp, sp, 16
ret
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
.ident "clang version 17.0.0"
.section ".note.GNU-stack","",@progbits
.addrsig $ llvm-mc -triple riscv64 -filetype obj tc.s
tc.s:24:8: error: unsupported relocation type
.quad __start_xref_array-.Ltmp0
^
tc.s:26:8: error: unsupported relocation type
.quad __stop_xref_array-.Ltmp1
^ |
I might be mis remembering as well. I realized that |
/cherry-pick 2f5fe16 |
Failed to cherry-pick: 2f5fe16 https://github.com/llvm/llvm-project/actions/runs/4424467021 Please manually backport the fix and push it to your github fork. Once this is done, please add a comment like this:
|
/branch llvm/llvm-project-release-prs/issue61412 |
/pull-request llvm/llvm-project-release-prs#389 |
The example below has worked fine with Clang 15 and also with Clang 16 branch of a week ago.
The text was updated successfully, but these errors were encountered: