The address was apparently 0x300. If you generate a mapfile using -Mmapfile, you get a section table that should enable you to translate text+0x2891 to the object file and offset the relocation originates from. That might also help a bit.yaros wrote: ↑Mon Dec 21, 2020 10:31 am Dr. Volker, is there any way to figure out what exactly vlink is complaining about with the following error?
Error 35: rpg.nes (text+0x2891): Calculated value 0x300 doesn't fit into relocation type R_ABS (offset=0, size=8, mask=0xffffffffffffffff).
edit: Ah, nevermind. I allocated the variable in bss, and imported it in c as zpage. It would be nice if linker could report the symbol (or address) it fails to reference.
I just checked that for an absolute symbol, vlink displays a nicer error message that includes the symbol name and file name. I will ask Frank if it is possible to improve this error message as well.