[fpc-devel] adding x86_64-netbsd

Axel Scheepers axel at axel.truedestiny.net
Mon Apr 20 17:59:05 CEST 2009

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 *,
crt0.c:(.text+0xe3): undefined reference to `main'

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
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fpc-netbsd-x86_64-patch
Type: text/x-patch
Size: 33486 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20090420/5362a270/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20090420/5362a270/attachment.sig>

More information about the fpc-devel mailing list