Error out if we try to build with GCC 3.3 or later; we should be using
the GCC-supplied crtbegin / crtend in the GCC 3.3 or later case.
This commit is contained in:
parent
8d13a4aafe
commit
70638a64cb
@ -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 <sys/exec_elf.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/*
|
||||
* 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
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
#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 */
|
||||
|
Loading…
Reference in New Issue
Block a user