[fpc-pascal] Lack of PIC code support for m68k CPU (was: FPC crashes with Internal error 200502052 compiling shared library on m68k)
Karoly Balogh
charlie at scenergy.dfmk.hu
Fri Mar 10 14:16:02 CET 2023
Hi,
On Thu, 9 Mar 2023, Peter B via fpc-pascal wrote:
> Note, I have raised a bug report for this crash now.
> https://gitlab.com/freepascal.org/fpc/source/-/issues/40177
Thanks for this.
> Given that -fpic is unsupported on m68k, perhaps the compiler could
> abort an attempted -fpic compilation there with a meaningful error
> message, rather that crash out with an internal error?
I briefly looked into this now, and concluded again that implementing PIC
is not the difficult part - for me anyway - but figuring it how how it
integrates with the rest of Linux, including conventions of ELF and
linker, and symbols, and GOT tables and whatever.
But to be honest, I also never really researched this before in depth. I'm
actually interested in implementing this, because I suspect there would be
large overlaps with Amiga (etc.) support, when it comes to code
infrastructure, even if some of the actual code generation would be
different. But that's the easy part.
Charlie
More information about the fpc-pascal
mailing list