This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: enable static libgcj on darwin
Andrew Pinski <pinskia@physics.uc.edu> writes:
>> Since darwin doesn't have a crtbegin.o/crtend.o (gcc only supports
>> this for COFF and ELF), the jcr section doesn't really work. Until
>> there is support for Mach-O in crtbegin/end, we need to fall back to
>> alternative methods of getting classes registered.
> This is wrong. Darwin does have support for JCR sections.
It has JCR sections. What it does not have is all the other stuff
needed to make them useful. See gcc/crtstuff.c, which is COFF/ELF-only.
> See libjava/darwin.cc which is used to support for JCR sections.
That is only a tiny portion of the functionality needed to make JCR
sections work properly. The rest is missing.
> Now if it is not being linked in, that is a different story and can
> be fixed a different way by using a .o instead of putting it into
> the .a.
That will not fix the problem.
- a
--
PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380