[fpc-devel] Questions regarding m68k-atari target

Karoly Balogh charlie at scenergy.dfmk.hu
Mon Feb 7 09:46:50 CET 2022


On Sun, 6 Feb 2022, Thorsten Otto via fpc-devel wrote:

> > - Running the same binaries in SingleTOS, they both give me "Internal
> > error 2004121202'. Then they both crash with a bus-error, too.
> That internal error is currently striking back. This happens both with
> my own compiled binary, and the one from the nightly build, but only in
> SingleTOS. When i run them under MiNT, they both work. Also, that
> bus-error at the end only happens in SingleTOS, too.
> I'm quite sure that a few days ago (when i tried to find out the problem
> with reading form console) at least my own binary worked. Could that be
> some more or less random heap corruption?

Could be. Does it also happen, when you compile everything for the 68020?

Otherwise to me it sounds more like something related to the executable
layout, especially if a similar problem also occurs with simpler examples.
I saw you added a default linker script for the aoutmint format, I haven't
checked it in detail, but for example vlink won't align the start sections
by default, unless you explicitly tell it to do so in the linker script, I
think. (At least it doesn't do that for raw binary output for example.)
And if that happens, who knows what the OS exe loader makes of that later
on. Going to guess that MiNT and SingleTOS uses a different loader?


More information about the fpc-devel mailing list