Re: [hatari-devel] Relocation warning + program failing when run from GEMDOS HD |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Relocation warning + program failing when run from GEMDOS HD
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Wed, 28 Sep 2022 17:42:45 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1664386967; bh=/DeSQ9suE8sron5zk8TRzqv/oztffTBw9q+n/5uNrSw=; h=Date:From:To:Subject:From; b=Fxiw45zvnt7KI48/Z2XSx25qa6rIuRHkYup6AL4s+zNXvqOUHeMnbxHYOq/fgaL3s BopIs6M6/Pni2jUoFEMqUQqcsNqzEOMY/c7anyF/T3p7ee6E7kWu0sB1O6n9GwR3T7 1HGZ8ROCqhHmODlsLVFk6punU4nKyoojnKFVxE9vVzQAyYeC5oas2noEQvW36KP1Ip 35l5G3mx+FuI86wX7FK++cj9EAVoQI/SXAXCRPHdnGKshckKBZuovdGkgJqCLO+KoW 41VWIE3Pzt012NISByd4BKd+1ozZ9sO1Ah1RjjeNo1oi90iTfuC3BQ/QhRpx5950pT mwicLITKRnZ/w==
Am Wed, 28 Sep 2022 11:16:23 +0300
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:
> Hi,
>
> Gah, now I got "c64_show.prg" to work also from GEMDOS HD, with 4MB RAM,
> with the following procedure:
>
> 1. First autostart it with:
> $ hatari -s 4 -m --fast-forward on ./c64_show.prg
> 2. After it crashes, disable fast-forwarding and start it from the
> desktop with double click
> 3. Press key when prompted
> => working slideshow
>
> That procedure works both with real TOS and EmuTOS.
>
> Just waiting long time before starting the program is not enough, it
> actually needs to crash first.
>
> WTF???
Well, the program has a corrupt relocation table, so if TOS is not checking
for the length of the relocation table and just looks for the terminating
NUL byte, the behavior of course depends on the contents of the memory that
were there right after the non-terminated table, so depending on whether
there was a NUL byte immediately following or not, the program might have
worked or the relocation process might have corrupted random other
locations of memory.
Anyway, the program is just corrupt. There is not much we could do from the
emulator side execpt to mention it as bad in the compatibility.html doc and
recommend a TOS version that might work by chance.
Thomas