Make __weak_reference work on the alpha.

This commit is contained in:
Doug Rabson 1998-07-25 14:37:37 +00:00
parent b0ab44a317
commit 4adac93d90
1 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)cdefs.h 8.8 (Berkeley) 1/9/95 * @(#)cdefs.h 8.8 (Berkeley) 1/9/95
* $Id: cdefs.h,v 1.18 1998/06/18 18:35:04 peter Exp $ * $Id: cdefs.h,v 1.19 1998/07/13 06:45:13 bde Exp $
*/ */
#ifndef _SYS_CDEFS_H_ #ifndef _SYS_CDEFS_H_
@ -157,7 +157,7 @@
#ifdef __STDC__ #ifdef __STDC__
#define __weak_reference(sym,alias) \ #define __weak_reference(sym,alias) \
__asm__(".weak " #alias); \ __asm__(".weak " #alias); \
__asm__(".set " #alias ", " #sym) __asm__(".equ " #alias ", " #sym)
#define __warn_references(sym,msg) \ #define __warn_references(sym,msg) \
__asm__(".section .gnu.warning." #sym); \ __asm__(".section .gnu.warning." #sym); \
__asm__(".ascii \"" msg "\""); \ __asm__(".ascii \"" msg "\""); \
@ -165,7 +165,7 @@
#else #else
#define __weak_reference(sym,alias) \ #define __weak_reference(sym,alias) \
__asm__(".weak alias"); \ __asm__(".weak alias"); \
__asm__(".set alias, sym") __asm__(".equ alias, sym")
#define __warn_references(sym,msg) \ #define __warn_references(sym,msg) \
__asm__(".section .gnu.warning.sym"); \ __asm__(".section .gnu.warning.sym"); \
__asm__(".ascii \"msg\""); \ __asm__(".ascii \"msg\""); \