[fpc-devel] problem with fpcres on mac
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon Jan 25 15:30:00 CET 2010
On 25 Jan 2010, at 15:02, zeljko wrote:
> I've already filled up an issue
> http://bugs.freepascal.org/view.php?id=15586 which shows the problem.
> It cannot link application with > 255 lfms (mac only - win32 & linux are ok).
> fpc-2.4.1 r14802
>
> Anyone ?
I don't know how fcl-res deals with resources, but if it creates a separate section in the object file for each resource, then that is probably the problem (mach-o object files are limited to 255 sections). If that is indeed the problem, then instead of creating separate sections it should simply put everything in a single section with a global symbol in front of each resource. Dead code stripping (aka "smart linking") happens based on global symbols on Mac OS X, not based on sections.
Jonas
More information about the fpc-devel
mailing list