Marco van de Voort wrote:
In our previous episode, Mark Morgan Lloyd said:
bash-3.2$ ./product_pas_8
bash: ./product_pas_8: cannot execute binary file

while if I use the default shell (Ksh?) I get

$ ./product_pas_8
./product_pas_8: syntax error at line 1: `(' unexpected

On Linux afaik that points to a wrong dynamic loader, on
*BSD to a missing ELF ident section (since that is how most
 BSDs link binary to dynamic linker)

Using elfdump -n might reveal which programs have an elf ident section.

(and objdump has some options to view elf headers, and objdump -D can be
used to find the section's content)

I'll see if I can dig a copy of elfdump out later, but I seriously feel that v7 (both SPARC and Solaris) is too old to take any trouble over. On the other hand, v8 probably is worth trying to keep alive since it includes big machines like the Xerox/Cray servers (FPC tells gas to assume v9, but I'm not sure it really means it).

I've raised the original -i etc. issue as http://mantis.freepascal.org/view.php?id=23250

--
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  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to