-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[thumbv6m-none-eabi] LLVM ERROR: unsupported relocation on symbol #38406
Comments
Seeing the reproduction involves assembly and jumping to a label that hasn’t been passed as an input for the asm!, I do not think this deserves a backport. |
I meant backporting/cherry-picking the upstream fix into our LLVM fork; not a "beta-backport". People that use the
Honest question: How does one pass a function to |
There’s no support for doing that directly in LLVM sadly, mostly because this is not a very desired feature; and you can work around the issue with some indirection, which not only handles mangling but also any relocation business you might have going on (pardon my x86):
compiles to code like this (PIC)
or
in static relocation mode. |
Clever. The ARM asm parser doesn't seem to like the dereference though:
|
@japaric to branch to an address in a register can do
but if you want to branch to a label you need an integer constant constraint.
|
llvm: backport r280651 fixes #38406 r? @alexcrichton (I'm secretly hoping this will error in the same way as #38314. That would sort of confirm that the problem is OOM and not enabling the SPARC backend)
STR
Works fine with
thumbv7m-none-eabi
:This is a bug in LLVM (30279) that has already been fixed in r280651. We only have to backport the fix.
cc @alexcrichton @thejpster
The text was updated successfully, but these errors were encountered: