Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys According to the ELF docs, ELF{32, 64}_ST_{BIND, TYPE, ...
details: https://anonhg.NetBSD.org/src/rev/01864436e06e
branches: trunk
changeset: 572261:01864436e06e
user: christos <christos%NetBSD.org@localhost>
date: Mon Dec 27 21:35:03 2004 +0000
description:
According to the ELF docs, ELF{32,64}_ST_{BIND,TYPE,INFO,VISIBILITY} are
parts of the public interface. Define them in terms of ELF_ST_*.
Add STN_UNDEF which is part of the public interface also.
diffstat:
sys/sys/exec_elf.h | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r 32a421c3ba56 -r 01864436e06e sys/sys/exec_elf.h
--- a/sys/sys/exec_elf.h Mon Dec 27 20:07:09 2004 +0000
+++ b/sys/sys/exec_elf.h Mon Dec 27 21:35:03 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf.h,v 1.77 2004/12/26 23:37:29 mycroft Exp $ */
+/* $NetBSD: exec_elf.h,v 1.78 2004/12/27 21:35:03 christos Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -420,6 +420,8 @@
/* Symbol Table index of the undefined symbol */
#define ELF_SYM_UNDEFINED 0
+#define STN_UNDEF 0 /* undefined index */
+
/* st_info: Symbol Bindings */
#define STB_LOCAL 0 /* local symbol */
#define STB_GLOBAL 1 /* global symbol */
@@ -760,6 +762,16 @@
#define AuxInfo Aux64Info
#endif
+#define ELF32_ST_BIND(info) ELF_ST_BIND(info)
+#define ELF32_ST_TYPE(info) ELF_ST_TYPE(info)
+#define ELF32_ST_INFO(bind,type) ELF_ST_INFO(bind,type)
+#define ELF32_ST_VISIBILITY(other) ELF_ST_VISIBILITY(other)
+
+#define ELF64_ST_BIND(info) ELF_ST_BIND(info)
+#define ELF64_ST_TYPE(info) ELF_ST_TYPE(info)
+#define ELF64_ST_INFO(bind,type) ELF_ST_INFO(bind,type)
+#define ELF64_ST_VISIBILITY(other) ELF_ST_VISIBILITY(other)
+
#ifdef _KERNEL
#define ELF_AUX_ENTRIES 12 /* Size of aux array passed to loader */
Home |
Main Index |
Thread Index |
Old Index