diff options
author | John Polstra <jdp@FreeBSD.org> | 1998-09-20 03:24:55 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 1998-09-20 03:24:55 +0000 |
commit | cc59ec0b9ea37ecc3645da9ed7bd15d20152c9c2 (patch) | |
tree | 671b51f1e390b9b1327faf2778b1a14408f141c0 /sys/sys/cdefs.h | |
parent | d988805a1f6cf6bbf1b61299a1e0e2c203dd3750 (diff) | |
download | src-cc59ec0b9ea37ecc3645da9ed7bd15d20152c9c2.tar.gz src-cc59ec0b9ea37ecc3645da9ed7bd15d20152c9c2.zip |
Null-terminate the message for a warning symbol in the __warn_references()
macro for ELF. Ian@cygnus.com says that is the proper way to use
the ".gnu.warning.SYMBOL" sections. However, he has accepted Doug
Rabson's BFD patch anyway.
Notes
Notes:
svn path=/head/; revision=39502
Diffstat (limited to 'sys/sys/cdefs.h')
-rw-r--r-- | sys/sys/cdefs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 0e7a3974af59..03ee5b4b7108 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)cdefs.h 8.8 (Berkeley) 1/9/95 - * $Id: cdefs.h,v 1.20 1998/07/25 14:37:37 dfr Exp $ + * $Id: cdefs.h,v 1.21 1998/08/24 06:17:01 bde Exp $ */ #ifndef _SYS_CDEFS_H_ @@ -155,7 +155,7 @@ __asm__(".equ " #alias ", " #sym) #define __warn_references(sym,msg) \ __asm__(".section .gnu.warning." #sym); \ - __asm__(".ascii \"" msg "\""); \ + __asm__(".asciz \"" msg "\""); \ __asm__(".previous") #else #define __weak_reference(sym,alias) \ @@ -163,7 +163,7 @@ __asm__(".equ alias, sym") #define __warn_references(sym,msg) \ __asm__(".section .gnu.warning.sym"); \ - __asm__(".ascii \"msg\""); \ + __asm__(".asciz \"msg\""); \ __asm__(".previous") #endif /* __STDC__ */ #else /* !__ELF__ */ |