Elf2Hunk crashes when i do something stupid in my vasm code. #264
AntonioDrusin
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey y'all. Is this something that should even be looked at?
I tried to "emulate" the way that hardware/custom.i work by using an XREF _custom wherever I use the custom registers.
So in one of the files I ended up XDEFing _custom (since it was not defined).
This caues elf2hunk to fail when trying to relocate, here accessing sh[shindex].
I bet that it does not expect this type of XDEF definitions. I don't think this should be supported, as there are other ways to access the custom registers or definining addresses.
But would it be worth it to update elf2hunk to spit out an error message that i.e. "Relocation for symbol x failed"?
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions