diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-08-03 03:05:12 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-08-03 03:05:12 +0000 |
commit | 5d1383fe23f053197bc79d4aabcae39eb5fa594d (patch) | |
tree | 02de08449abe1d83cf90ca1a521bd98634e99132 | |
parent | eae09cf9eae9b594569fa3c7fdb292d4f97ac0f1 (diff) |
- don't use unexistant as(1) .weakext pseudo; found by todd@
- remove unused code.
mickey@ ok.
libc cross-compiling (i386->hppa) reported to work now.
-rw-r--r-- | sys/arch/hppa/include/cdefs.h | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/sys/arch/hppa/include/cdefs.h b/sys/arch/hppa/include/cdefs.h index 474378816a8..4b6012bbf2b 100644 --- a/sys/arch/hppa/include/cdefs.h +++ b/sys/arch/hppa/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.3 2001/03/29 01:44:53 mickey Exp $ */ +/* $OpenBSD: cdefs.h,v 1.4 2002/08/03 03:05:11 fgsch Exp $ */ /* $NetBSD: cdefs.h,v 1.5 1996/10/12 18:08:12 cgd Exp $ */ /* @@ -33,37 +33,9 @@ #define _C_LABEL(x) _STRING(x) -#ifdef __ELF__ - -#ifdef __STDC__ - #define __weak_alias(alias,sym) \ __asm__(".weak " __STRING(alias) " ; " __STRING(alias) " = " __STRING(sym)) #define __warn_references(sym,msg) \ __asm__(".section .gnu.warning." __STRING(sym) " ; .ascii \"" msg "\" ; .text") -#else /* !__STDC__ */ - -#define __weak_alias(alias,sym) \ - __asm__(".weak alias ; alias = sym") -#define __warn_references(sym,msg) \ - __asm__(".section .gnu.warning.sym ; .ascii msg ; .text") - -#endif /* !__STDC__ */ - -#else /* !__ELF__ */ - -/* - * We don't support indirect references and don't do anything with warnings. - */ - -#ifdef __STDC__ -#define __weak_alias(alias,sym) __asm__(".weakext " __STRING(alias) ", " __STRING(sym)) -#else /* !__STDC__ */ -#define __weak_alias(alias,sym) __asm__(".weakext alias, sym") -#endif /* !__STDC__ */ -#define __warn_references(sym,msg) /* nothing */ - -#endif /* !__ELF__ */ - #endif /* !_MACHINE_CDEFS_H_ */ |