It already does that. Why do you remove the unused attribute from it?
The correct thing to do is IMHO put it into .text.exit and .data.exit and
add clauses into arch vmlinux.lds that it will throw those sections away
before linking vmlinux. It is never needed, so why should kernel carry
unneeded text/data.
It was in my init.h patch I've sent last time to the list, if anyone is
interested I can dig it out and resend.
Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
UltraLinux | http://ultra.linux.cz/ | http://ultra.penguin.cz/
Linux version 2.3.18 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/