Messages in this thread |  | | Date | Sat, 14 Dec 96 11:25:33 EST | From | Tom Dyas <> | Subject | Re:Possible kernel optimizati |
| |
> 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 ftp://vger.rutgers.edu/pub/linux/Sparc/snapshots 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.)
Tom
|  |