head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.46 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.44 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.42 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.40 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.38 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.36 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.34 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.32 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.30 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.28 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.26 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.24 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.22 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.20 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.18 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.16 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.14 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.12 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.10 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.8 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.6 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.4 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.2 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.1.0.16 pkgsrc-2004Q3-base:1.1 pkgsrc-2004Q2:1.1.0.14 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.12 pkgsrc-2004Q1-base:1.1 pkgsrc-2003Q4:1.1.0.10 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1; locks; strict; comment @# @; 1.2 date 2004.11.25.15.10.09; author wiz; state dead; branches; next 1.1; 1.1 date 2002.03.14.14.54.55; author wiz; state Exp; branches; next ; desc @@ 1.2 log @Remove pgcc -- obsoleted by the release of gcc3. @ text @$NetBSD: patch-au,v 1.1 2002/03/14 14:54:55 wiz Exp $ --- ../gcc-2.95.2/gcc/crtstuff.c.orig Tue Feb 27 14:34:52 2001 +++ ../gcc-2.95.2/gcc/crtstuff.c @@@@ -181,16 +181,16 @@@@ /* Stick a call to __do_global_dtors_aux into the .fini section. */ -static void __attribute__ ((__unused__)) -fini_dummy (void) +asm (FINI_SECTION_ASM_OP); +void __attribute__ ((__unused__)) +_fini (void) { - asm (FINI_SECTION_ASM_OP); __do_global_dtors_aux (); #ifdef FORCE_FINI_SECTION_ALIGN FORCE_FINI_SECTION_ALIGN; #endif - asm (TEXT_SECTION_ASM_OP); } +asm (TEXT_SECTION_ASM_OP); #ifdef EH_FRAME_SECTION_ASM_OP /* Stick a call to __register_frame_info into the .init section. For some @@@@ -205,6 +205,21 @@@@ __register_frame_info (__EH_FRAME_BEGIN__, &object); } +static void +__nop (void) +{ + //asm("unimp 0x42"); // We must not call this function ever. If we happen to + // do it accidently, use the emergency exit. +} + +asm (INIT_SECTION_ASM_OP); +void __attribute__ ((__unused__)) +_init (void) +{ + asm (TEXT_SECTION_ASM_OP); + __nop(); +} + static void __attribute__ ((__unused__)) init_dummy (void) { @@@@ -378,7 +393,6 @@@@ #ifdef FORCE_INIT_SECTION_ALIGN FORCE_INIT_SECTION_ALIGN; #endif - asm (TEXT_SECTION_ASM_OP); /* This is a kludge. The i386 GNU/Linux dynamic linker needs ___brk_addr, __environ and atexit (). We have to make sure they are in the .dynsym @@@@ -395,6 +409,7 @@@@ } #endif } +asm (TEXT_SECTION_ASM_OP); #else /* OBJECT_FORMAT_ELF */ @ 1.1 log @Pull over gcc package files from before the 2.95.3 update. Compiles and installs/deinstalls cleanly on 1.5ZA/i386, otherwise untested, but that's better than a BROKEN package. Some cleanup. @ text @d1 1 a1 1 $NetBSD: patch-au,v 1.1 2001/02/28 23:28:09 hubertf Exp $ @