Consider __NO_LEADING_UNDERSCORES__ provided by the new ELF toolchain.
This commit is contained in:
parent
037cacf7e2
commit
3bce84cf10
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: asm.h,v 1.7 2001/06/10 19:06:26 msaitoh Exp $ */
|
/* $NetBSD: asm.h,v 1.8 2001/12/16 18:11:12 thorpej Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1990 The Regents of the University of California.
|
* Copyright (c) 1990 The Regents of the University of California.
|
||||||
|
@ -48,11 +48,13 @@
|
||||||
#define PIC_GOT(x) x
|
#define PIC_GOT(x) x
|
||||||
#define PIC_GOTOFF(x) x
|
#define PIC_GOTOFF(x) x
|
||||||
|
|
||||||
#ifdef __ELF__
|
/*
|
||||||
#define __LEADING_UNDERSCORE
|
* The old NetBSD/sh3 ELF toolchain used underscores. The new
|
||||||
#endif
|
* NetBSD/sh3 ELF toolchain does not. The C pre-processor
|
||||||
|
* defines __NO_LEADING_UNDERSCORES__ for the new ELF toolchain.
|
||||||
|
*/
|
||||||
|
|
||||||
#if (defined(__ELF__) && !defined(__LEADING_UNDERSCORE))
|
#if (defined(__ELF__) && defined(__NO_LEADING_UNDERSCORES__))
|
||||||
# define _C_LABEL(x) x
|
# define _C_LABEL(x) x
|
||||||
#else
|
#else
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
/* $NetBSD: cdefs.h,v 1.2 2001/02/25 15:49:58 msaitoh Exp $ */
|
/* $NetBSD: cdefs.h,v 1.3 2001/12/16 18:11:12 thorpej Exp $ */
|
||||||
|
|
||||||
#ifndef _MACHINE_CDEFS_H_
|
#ifndef _MACHINE_CDEFS_H_
|
||||||
#define _MACHINE_CDEFS_H_
|
#define _MACHINE_CDEFS_H_
|
||||||
|
|
||||||
#ifdef __ELF__
|
/*
|
||||||
|
* The old NetBSD/sh3 ELF toolchain used underscores. The new
|
||||||
|
* NetBSD/sh3 ELF toolchain does not. The C pre-processor
|
||||||
|
* defines __NO_LEADING_UNDERSCORES__ for the new ELF toolchain.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(__ELF__) && !defined(__NO_LEADING_UNDERSCORES__)
|
||||||
#define __LEADING_UNDERSCORE
|
#define __LEADING_UNDERSCORE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue