From 7e68cfaa2136fbc56411b3fe1d83a10bc8651b0f Mon Sep 17 00:00:00 2001 From: skrll Date: Thu, 19 Oct 2006 18:59:30 +0000 Subject: [PATCH] powerpc MD_DO_NOT_NEED_FALLTHRU. OK'ed by Matt Thomas. --- lib/csu/powerpc/dot_init.h | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/lib/csu/powerpc/dot_init.h b/lib/csu/powerpc/dot_init.h index c2755eb3f419..8f40b6006f15 100644 --- a/lib/csu/powerpc/dot_init.h +++ b/lib/csu/powerpc/dot_init.h @@ -1,4 +1,4 @@ -/* $NetBSD: dot_init.h,v 1.3 2006/07/07 19:57:29 ross Exp $ */ +/* $NetBSD: dot_init.h,v 1.4 2006/10/19 18:59:30 skrll Exp $ */ /*- * Copyright (c) 2001 Ross Harvey @@ -35,20 +35,10 @@ #include /* RCS ID & Copyright macro defns */ -/* - * These must be extern to avoid warnings ("declared static but never defined") - * However, only the declaration is extern, the actually __asm() defines them - * as static. - */ -#define INIT_FALLTHRU_DECL void init_fallthru(void) -#define FINI_FALLTHRU_DECL void fini_fallthru(void) - -#define INIT_FALLTHRU() init_fallthru() -#define FINI_FALLTHRU() fini_fallthru() - #define MD_SECTION_PROLOGUE(sect, entry_pt) \ __asm ( \ ".section "#sect",\"ax\",@progbits \n" \ + ".global "#entry_pt" \n" \ #entry_pt": \n" \ " stwu %r1,-16(%r1) \n" \ " mflr %r0 \n" \ @@ -65,8 +55,10 @@ " blr \n" \ ".previous") -#define MD_INIT_SECTION_PROLOGUE MD_SECTION_PROLOGUE(.init, init_fallthru) -#define MD_FINI_SECTION_PROLOGUE MD_SECTION_PROLOGUE(.fini, fini_fallthru) +#define MD_INIT_SECTION_PROLOGUE MD_SECTION_PROLOGUE(.init, _init) +#define MD_FINI_SECTION_PROLOGUE MD_SECTION_PROLOGUE(.fini, _fini) #define MD_INIT_SECTION_EPILOGUE MD_SECTION_EPILOGUE(.init) #define MD_FINI_SECTION_EPILOGUE MD_SECTION_EPILOGUE(.fini) + +#define MD_DO_NOT_NEED_FALLTHRU