On Freitag, 28. Januar 2022 13:55:11 CET Thorsten Otto via fpc-devel wrote:
> i still want to try to figure out what's wrong when using gas/ld)

I get the the feeling that there must be something else going wrong:

- when i run the binary compiled by using vasm/vlink in mint, it works
- when i run the binary compiled by using gas/ld in mint, it immediately 
crashes with a bus-error.
- Running the same binaries in SingleTOS, they both give me "Internal error 
2004121202'. Then they both crash with a bus-error, too.

The error number comes from def_system_macro, when it is invoked with an empty 
name. The crash seems to happen in system.o, during initalization. The 
external name of the procedure is 'SYSTEM_$
$_RECORDRTTI$POINTER$POINTER$TRTTIPROC'
(where does that come from?) system.o is rather large (~150k of code), 
although the source is quite small, so that seems to be some inlined code?


_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to