Re:Possible kernel optimizati

Tom Dyas (
Sat, 14 Dec 96 11:25:33 EST

> Good! How can do it with a gcc ? In a C code we need to declare this
> functions as part of this section (with #pragma ?), in new exception
> handling we can do it with __asm__(".section __ex_table,\"ax\"").

Get a copy of the latest SparcLinux source from and read
<linux/init.h>. The gcc code that does the section handling is one of
the attributes:

void foo(int arg1) __attribute__ ((__section__ ".text.init"));

(Hidden by macros though in practice.)