Some hacks which will go away when we switch to a native NetBSD toolchain.

The SuperH compiler erroneously prepends underscores to global syms...
This commit is contained in:
scw 2002-07-10 11:36:23 +00:00
parent 4fe0887c60
commit 187f1ae3a1
2 changed files with 13 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.2 2002/07/10 10:24:16 scw Exp $ */
/* $NetBSD: asm.h,v 1.3 2002/07/10 11:36:23 scw Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@ -81,8 +81,16 @@
#define PIC_GOT(x) x
#define PIC_GOTOFF(x) x
/*
* XXX: Remove underscore when we switch to native NetBSD toolchain
*/
#if __STDC__
#define _C_LABEL(x) _ ## x
#define _ASM_LABEL(x) _ ## x
#else
#define _C_LABEL(x) _/**/x
#define _ASM_LABEL(x) _/**/x
#define _ASM_LABEL(x) _/**/x
#endif
/* let kernels and others override entrypoint alignment */
#ifndef _ALIGN_TEXT

View File

@ -1,7 +1,9 @@
/* $NetBSD: cdefs.h,v 1.1 2002/07/05 13:31:56 scw Exp $ */
/* $NetBSD: cdefs.h,v 1.2 2002/07/10 11:36:23 scw Exp $ */
#ifndef _SH5_CDEFS_H_
#define _SH5_CDEFS_H_
/* XXX: Temporary, until we switch to native NetBSD toolchain */
#define __LEADING_UNDERSCORE
#endif /* _SH5_CDEFS_H_ */