[fpc-devel] Getting fpc to work on Solaris (11)

Joost van der Sluis joost at cnoc.nl
Mon Jul 11 17:06:37 CEST 2011


On Mon, 2011-07-11 at 16:47 +0200, Ludo Brands wrote:
> > > You need to get the gnu binutils from sunfreeware.com and set your 
> > > path to include /usr/local/bin.
> > 
> > I have them installed. (Well, using 'pkg install 
> > gnu-binutils') Or else gld wouldn't be available at all. And 
> > there is no '/usr/local/bin'?
> > 
> > Do you think I can better try the binutils at the sunfreeware website?
> > 
> 
> I replied a little bit too quick. You're using solaris 11 and
> sunfreeware.com supports up to solaris 10.
> 
> When you write "When I use -T", I guess that is -st ? What command line did
> you use to link with link.res?

Application name is test. (It's a hello world)

/usr/bin/gld -s -L. -o test link.res
result:
/usr/bin/gld:built in linker script:21: syntax error

When I use this: (-T, not -st)
/usr/bin/gld -s -L. -o test -T link.res
result: link succeed, but running:
./test
test: Bad entry point
Killed

Joost.






More information about the fpc-devel mailing list