diff --git a/lib/csu/common_elf/crtbegin.c b/lib/csu/common_elf/crtbegin.c index a98f81846d33..b145330523c0 100644 --- a/lib/csu/common_elf/crtbegin.c +++ b/lib/csu/common_elf/crtbegin.c @@ -1,4 +1,4 @@ -/* $NetBSD: crtbegin.c,v 1.25 2004/08/26 20:51:27 thorpej Exp $ */ +/* $NetBSD: crtbegin.c,v 1.26 2004/08/28 00:19:22 thorpej Exp $ */ /*- * Copyright (c) 1998, 2001, 2002 The NetBSD Foundation, Inc. @@ -52,6 +52,14 @@ #include #include +/* + * WE SHOULD BE USING GCC-SUPPLIED crtbegin.o FOR GCC 3.3 AND + * LATER!!! + */ +#if __GNUC_PREREQ__(3, 3) +#error "Use GCC-supplied crtbegin.o" +#endif + #if __GNUC_PREREQ__(3, 0) #define USED_NOINLINE __attribute__((__used__,__noinline__)) #else diff --git a/lib/csu/common_elf/crtend.c b/lib/csu/common_elf/crtend.c index 8210d5bcb2f7..9e07d6d8ebc4 100644 --- a/lib/csu/common_elf/crtend.c +++ b/lib/csu/common_elf/crtend.c @@ -1,8 +1,16 @@ -/* $NetBSD: crtend.c,v 1.10 2002/11/22 06:44:59 thorpej Exp $ */ +/* $NetBSD: crtend.c,v 1.11 2004/08/28 00:19:22 thorpej Exp $ */ #include #include "dot_init.h" +/* + * WE SHOULD BE USING GCC-SUPPLIED crtend.o FOR GCC 3.3 AND + * LATER!!! + */ +#if __GNUC_PREREQ__(3, 3) +#error "Use GCC-supplied crtend.o" +#endif + static void (*__CTOR_LIST__[1]) __P((void)) __attribute__((__unused__)) __attribute__((section(".ctors"))) = { (void *)0 }; /* XXX */