* [patch] 2.5.43 export _end
@ 2002-10-17 3:12 Keith Owens
0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2002-10-17 3:12 UTC (permalink / raw)
To: trivial; +Cc: linux-kernel
Some programs such as ps, lkcd and others need to validate that
System.map matches the kernel. Comparing all symbol names from ksyms
against map breaks badly when faced with function descriptors (ia64 has
hundreds of mismatches because of function descriptors). lkcd attempts
to solve this problem by adding kernel_magic which contains the value
of _end, but that requires /dev/kmem access to read kernel_magic.
Trivial fix - export _end. Every arch *lds* file defines _end.
No special access is required to match ksyms _end against System.map
_end.
Index: 43.1/kernel/ksyms.c
--- 43.1/kernel/ksyms.c Wed, 16 Oct 2002 14:25:21 +1000 kaos (linux-2.5/w/d/18_ksyms.c 1.22.1.31 444)
+++ 43.1(w)/kernel/ksyms.c Thu, 17 Oct 2002 12:16:14 +1000 kaos (linux-2.5/w/d/18_ksyms.c 1.22.1.31 444)
@@ -602,3 +602,7 @@ EXPORT_SYMBOL(__per_cpu_offset);
/* debug */
EXPORT_SYMBOL(dump_stack);
+
+/* To match ksyms with System.map */
+extern const char _end[];
+EXPORT_SYMBOL(_end);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-17 3:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-17 3:12 [patch] 2.5.43 export _end Keith Owens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox