Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/include RCSID should go to .ident section.



details:   https://anonhg.NetBSD.org/src/rev/20fef32b8f51
branches:  trunk
changeset: 536507:20fef32b8f51
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Sep 17 15:28:28 2002 +0000

description:
RCSID should go to .ident section.
While here add __KERNEL_RCSID.

diffstat:

 sys/arch/sparc/include/asm.h |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 453072153abd -r 20fef32b8f51 sys/arch/sparc/include/asm.h
--- a/sys/arch/sparc/include/asm.h      Tue Sep 17 13:10:59 2002 +0000
+++ b/sys/arch/sparc/include/asm.h      Tue Sep 17 15:28:28 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.14 2002/07/20 08:37:30 mrg Exp $ */
+/*     $NetBSD: asm.h,v 1.15 2002/09/17 15:28:28 uwe Exp $ */
 
 /*
  * Copyright (c) 1994 Allen Briggs
@@ -156,7 +156,17 @@
 
 #define ASMSTR                 .asciz
 
+#ifdef __ELF__
+#define RCSID(name)            .pushsection ".ident"; .asciz name; .popsection
+#else
 #define RCSID(name)            .asciz name
+#endif
+
+#ifdef NO_KERNEL_RCSIDS
+#define        __KERNEL_RCSID(_n, _s)  /* nothing */
+#else
+#define        __KERNEL_RCSID(_n, _s)  RCSID(_s)
+#endif
 
 #ifdef __ELF__
 #define        WEAK_ALIAS(alias,sym)                                           \



Home | Main Index | Thread Index | Old Index