Fix symbol renaming on cc -traditional.
Fix PRs bin/5167 and lib/6310.
This commit is contained in:
parent
254fb071e7
commit
d6f355c744
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cdefs.h,v 1.29 1999/03/20 01:39:22 thorpej Exp $ */
|
||||
/* $NetBSD: cdefs.h,v 1.30 1999/12/13 08:25:16 itohy Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -163,12 +163,12 @@
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define __RENAME(x) __asm__(___STRING(_C_LABEL(x)))
|
||||
#define __RENAME(x) ___RENAME(x)
|
||||
#else
|
||||
#ifdef __lint__
|
||||
#define __RENAME(x) __symbolrename(x)
|
||||
#else
|
||||
#error "No function renaming possible"
|
||||
#error "No function renaming possible"
|
||||
#endif /* __lint__ */
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cdefs_aout.h,v 1.3 1999/12/11 22:29:32 explorer Exp $ */
|
||||
/* $NetBSD: cdefs_aout.h,v 1.4 1999/12/13 08:25:16 itohy Exp $ */
|
||||
|
||||
/*
|
||||
* Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
|
||||
@ -10,6 +10,13 @@
|
||||
|
||||
#define _C_LABEL(x) __CONCAT(_,x)
|
||||
|
||||
#ifdef __STDC__
|
||||
#define ___RENAME(x) __asm__(___STRING(_C_LABEL(x)))
|
||||
#else
|
||||
#define ___RENAME(x) ____RENAME(_/**/x)
|
||||
#define ____RENAME(x) __asm__(___STRING(x))
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#ifdef __STDC__
|
||||
#define __indr_reference(sym,alias) \
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cdefs_elf.h,v 1.6 1999/12/11 22:29:32 explorer Exp $ */
|
||||
/* $NetBSD: cdefs_elf.h,v 1.7 1999/12/13 08:25:16 itohy Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
@ -31,11 +31,22 @@
|
||||
#define _SYS_CDEFS_ELF_H_
|
||||
|
||||
#if defined(__sh3__)
|
||||
#define _C_LABEL(x) __CONCAT(_,x)
|
||||
#define _C_LABEL(x) __CONCAT(_,x)
|
||||
#else
|
||||
#define _C_LABEL(x) x
|
||||
#endif
|
||||
|
||||
#ifdef __STDC__
|
||||
#define ___RENAME(x) __asm__(___STRING(_C_LABEL(x)))
|
||||
#else
|
||||
#if defined(__sh3__)
|
||||
#define ___RENAME(x) ____RENAME(_/**/x)
|
||||
#define ____RENAME(x) __asm__(___STRING(x))
|
||||
#else
|
||||
#define ___RENAME(x) __asm__(___STRING(x))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#undef __DO_NOT_DO_WEAK__ /* NO WEAK SYMS IN LIBC YET */
|
||||
|
||||
#ifndef __DO_NOT_DO_WEAK__
|
||||
|
Loading…
Reference in New Issue
Block a user