Messages in this thread | | | Date | Thu, 10 Apr 2008 17:05:44 +0200 | From | Andi Kleen <> | Subject | Re: [PATCH] pop previous section in alternative.c |
| |
On Thu, Apr 10, 2008 at 07:46:25AM -0700, Linus Torvalds wrote: > > > On Thu, 10 Apr 2008, Andi Kleen wrote: > > > > So in summary valid section patterns are either > > .section / .previous or .pushsection .section .popsection > > The thing is, we'd be much better off with some sanity checking in the > assembler. > > Which is likely not going to happen - oh well.
A simple way to detect it on the assembler level would be checking that the section is the same after #NO_APP as before #APP
-Andi
| |