summaryrefslogtreecommitdiffstats
path: root/sys/alpha/include/asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/alpha/include/asm.h')
-rw-r--r--sys/alpha/include/asm.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/sys/alpha/include/asm.h b/sys/alpha/include/asm.h
index d4129ab..84601f3 100644
--- a/sys/alpha/include/asm.h
+++ b/sys/alpha/include/asm.h
@@ -619,11 +619,9 @@ label: ASCIZ msg; \
/*
* WEAK_ALIAS: create a weak alias (ELF only).
*/
-#ifdef __ELF__
#define WEAK_ALIAS(alias,sym) \
.weak alias; \
alias = sym
-#endif
/*
* Kernel RCS ID tag and copyright macros
@@ -631,19 +629,9 @@ label: ASCIZ msg; \
#ifdef _KERNEL
-#ifdef __ELF__
-#define __KERNEL_SECTIONSTRING(_sec, _str) \
- .section _sec ; .asciz _str ; .text
-#else /* __ELF__ */
-#define __KERNEL_SECTIONSTRING(_sec, _str) \
- .data ; .asciz _str ; .align 3 ; .text
-#endif /* __ELF__ */
-
-#define __KERNEL_RCSID(_n, _s) __KERNEL_SECTIONSTRING(.ident, _s)
-#define __KERNEL_COPYRIGHT(_n, _s) __KERNEL_SECTIONSTRING(.copyright, _s)
-
-#ifdef NO_KERNEL_RCSIDS
-#undef __KERNEL_RCSID
+#if !defined(lint) && !defined(NO_KERNEL_RCSIDS)
+#define __KERNEL_RCSID(_n, _s) .ident _s
+#else
#define __KERNEL_RCSID(_n, _s) /* nothing */
#endif
OpenPOWER on IntegriCloud