[fpc-pascal] Smart link in FreeBSD multi-arch ?
Marco van de Voort
marcov at stack.nl
Wed Oct 19 14:16:06 CEST 2016
In our previous episode, fredvs said:
> > Just curious. If you don't compile with Smart-Linking enabled, does your
> binary then run fine?
> Yes, without Smart-linking, a 32 bit fpc application runs fine in a
> multi-arch 64 bit system.
> With Smart-linking a 32 bit application runs fine only in a mono-arch 32
Do you see differences between ppas.sh and link.res with and without
smartlinking ohter than --gc-sections?
If you compile without smartlinking but with -s and add --gc-sections to the
ppas.sh file yourself, what happens then?
(rationale: maybe smartlinking taking a different path in t_bsd, finding a
different ELF interpreter, linking C etc?)
Does it matter if you import unit "cmem" into your test program?
More information about the fpc-pascal