Well, it depends on how you view it. Almost all user mode code is, in
fact, "self-modifying" if you view relocation and (to a lesser extent)
weak symbols as some kind of "self-modifying code" (remember how fp fixup
was done ages ago on x86?).
The exception mechanism in the kernl is another "globally visible" feature,
that has nothing to do with code-modification, but requires deeper knowledge
about the architecture.
I do not propose this solution, but it shouldn't be dismissed without
thinking ;->
(The requirement to add superfluous nops would be reason to dismiss it,
though ;)
--
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg@opengroup.org |e|
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
The choice of a GNU generation |
|
-
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/