[uClibc] [PATCH] fix libptrhead build for m68k

Bernardo Innocenti bernie at develer.com
Mon Oct 6 12:29:22 UTC 2003

Erik Andersen wrote:

>>this patch is required to build libpthread on uClinux.
>>I've made the test on ARCH_HAS_NO_MMU, but perhaps
>>testing for m68k or for the FLAT binary format would
>>be more appropriate.
>>The real reason for this exception is that uClinux binaries
>>are not linked with crtbegin.o/crtend.o.
> Why?  Without them, how will constructors and destructors work? 

Perhaps I'm misunderstanding the porpose of crtbegin. I had the
impression that it only provided support for frame registration
required for correct exception handling with dlopen()ed shared

Wasn't the init/fini stuff done in crt.o?

In any case, uClinux never links with crtbegin/crtend. If you
try building GCC with them, you get a compile error because we
don't have the eh_frame section.

  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/

Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html

More information about the uClibc mailing list