Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh3/include Fix for ELF + __NO_LEADING_UNDERSCORES__.



details:   https://anonhg.NetBSD.org/src/rev/2ca5ff94ada9
branches:  trunk
changeset: 521723:2ca5ff94ada9
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Feb 04 08:33:34 2002 +0000

description:
Fix for ELF + __NO_LEADING_UNDERSCORES__.

diffstat:

 sys/arch/sh3/include/profile.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r feb36dd28555 -r 2ca5ff94ada9 sys/arch/sh3/include/profile.h
--- a/sys/arch/sh3/include/profile.h    Mon Feb 04 08:21:27 2002 +0000
+++ b/sys/arch/sh3/include/profile.h    Mon Feb 04 08:33:34 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: profile.h,v 1.2 2000/08/22 11:25:49 tsubai Exp $       */
+/*     $NetBSD: profile.h,v 1.3 2002/02/04 08:33:34 thorpej Exp $      */
 
 /*-
  * Copyright (c) 2000 Tsubai Masanari.  All rights reserved.
@@ -26,7 +26,11 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if defined(__ELF__) && defined(__NO_LEADING_UNDERSCORES__)
+#define        _MCOUNT_DECL static void _mcount
+#else
 #define _MCOUNT_DECL static void mcount
+#endif
 
 #define MCOUNT __asm ("                        \n\
        .text                           \n\



Home | Main Index | Thread Index | Old Index