Ludo Brands wrote:
Can't find any reference to a -sol2 suffix even looking at (SPARC)
Solaris 8. For that matter I can't find it in the FPC sources, except
very obtusely referring to a version of gcc. Has install put
something
suspect in fpc.cfg?
This is pure ld. Nothing to do with fpc. When ld is built for a platform it
contains an internal script with basic build information (type of binary
file to create, etc.) for that particular platform. This way the user can
easily build the same software on different platforms without being bothered
with platform specific settings. For Solaris 11 there seems to be a gnu ld
around with wrong/corrupt internal scripts. The one I sent to Joost was the
output I got on solaris 10 from a ld --verbose. If you try this command on
your sparc machine, you'll probably see a lot of differences because of the
different cpu.
If I understand you correctly, on SPARC Solaris 10 I see
GNU ld version 2.15
Supported emulations:
elf32_sparc
elf64_sparc
using internal linker script:
==================================================
/* Script for -z combreloc: combine and sort reloc sections */
OUTPUT_FORMAT("elf32-sparc", "elf32-sparc",
"elf32-sparc")
OUTPUT_ARCH(sparc)
One thing I don't understand is whether there's any scope for the
computer type that's optionally fed to binutils's ./configure to appear
in the final programs (ld for Solaris etc.). I definitely see references
to sol2 as the final part of this parameter in config.sub which I
believe is used to check and parse the type, where it's used to specify
that the OS is -solaris2 rather than -sysv etc.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel