On Mon, 2011-07-11 at 18:08 +0200, Ludo Brands wrote: > > 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 > > > > If you add --verbose it'll print out the internal ld script. See what line > 21 corresponds with.
Tried that, but it shows nothing. (Apparently it parses the script first) But what I did find out was that some of the scripts in /usr/gnu/i386-pc-solaris2.11/lib/ldscripts are incomplete! For example the file elf_i386.xcs is only 21 lines long. It looks like the effect in this bug-report: http://lists.gnu.org/archive/html/bug-binutils/2010-04/msg00000.html Only not all files are truncated, and on another offset. Any idea how to get the right scripts? (Can I force a re-install of the package? Or an older version) > > When I use this: (-T, not -st) > > /usr/bin/gld -s -L. -o test -T link.res > > OK. I was thinking of the fpc option. Oh, yes, sure. I was running the linker manually. Joost _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
