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 > bit. 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? _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal