Re: use ELF sections for get_wchan()
From: Sam Ravnborg
Date: Wed Nov 19 2003 - 00:54:42 EST
On Tue, Nov 18, 2003 at 07:13:37PM -0800, William Lee Irwin III wrote:
> willy said I should use .sched.text instead of .text.sched; this fixes
> it up to do that.
Hi wli,
how about utilising asm-generic/vmlinux.h.S now that you are touching so
many .lds files?
Something like the attached could be used?
That will simplify and consolidate the the .lds files, but full
flexibility remains.
I noticed that there were small diferences between the individual
architectures, but specifying only content of the section should allow
it to be used all over.
Sam
===== include/asm-generic/vmlinux.lds.h 1.8 vs edited =====
--- 1.8/include/asm-generic/vmlinux.lds.h Thu Jun 12 02:40:10 2003
+++ edited/include/asm-generic/vmlinux.lds.h Wed Nov 19 06:48:40 2003
@@ -45,6 +45,15 @@
*(__ksymtab_strings) \
}
+#define TEXT_CONTENT \
+ _stext = .; \
+ *(.text) \
+ __schduling_functions_start_here = .; \
+ *(.sched.text) \
+ __scheduling_functions_end_here = .; \
+ *(.fixup) \
+ *(.gnu.warning)
+
#define SECURITY_INIT \
.security_initcall.init : { \
__security_initcall_start = .; \
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/