Re: [hatari-devel] Relocation warning + program failing when run from GEMDOS HD

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On Samstag, 24. September 2022 19:51:46 CEST Eero Tamminen wrote:
>  it's
> possible that current GEMDOS HD code does not handle e.g. relocation
> errors correctly.

TOS does not check for errors in the relocations either. And IMHO there is not 
much you can check there, other than checking that the bytes are not odd (but 
then you would get an address error anyway when trying to write to an odd 
address) and that the relocations don't try to patch anything beyond the 
program end, but that does not seem to be the case with this demo.

Only thing that i noticed, that there are 66 bytes of garbage after the end of 
the relocation table, all of which are 0.

It does however catch the GEMDOS Fread call, and does a tst.w 2(a7) when that 
returns. Not sure what's the purpose of this, but maybe that is where things 
go wrong.





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/