[llvm] r198580 - [Sparc] Add ELF Object Writer for Sparc.
Roman Divacky
rdivacky at freebsd.org
Mon Jan 6 15:01:55 PST 2014
> +static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) {
> + switch (Kind) {
> + default:
> + llvm_unreachable("Unknown fixup kind!");
> + case FK_Data_1:
> + case FK_Data_2:
> + case FK_Data_4:
> + case FK_Data_8:
> + return Value;
> + case Sparc::fixup_sparc_call30:
> + return Value & 0x3fffffff;
I think this needs to be (Value >> 2) & 0x3fffffff
with this fix I am able to assemble simple things :)
More information about the llvm-commits
mailing list