Hi List,
I've been fiddling around adding netbsd x86_64 to fpc 2.2.4, I've got it to the point that I can compile both the rtl and the compiler but I'm having difficulties creating the prt0.as file(s).
I can't link anything due to missing symbols;
[...]
Assembling pp
Linking ./pp
/home/axel/Sources/FPC/fpcbuild-2.2.4-netbsd_x86_64/fpcsrc/rtl/units/x86_64-netbsd/prt0.o: In function `___start': crt0.c:(.text+0xc5): undefined reference to `_fini' crt0.c:(.text+0xd0): undefined reference to `_(float, char __restrict *, wchar_t)'
crt0.c:(.text+0xe3): undefined reference to `main' [..snip!..]
The file I created is a somewhat modified .s output from crt0.c from netbsd. Can someone help me a bit with this?
I've included a patch with the things I changed (but there's some build leftovers in it too, sorry)
I used to program a lot in pascal for school about 16yrs ago, it would be fun to start playing with it again :)
Kind regards,
Axel Scheepers
