Messages in this thread | | | Date | Fri, 18 May 2018 11:33:51 -0700 | Subject | Re: [PATCH 2/6] x86: bug: prevent gcc distortions | From | hpa@zytor ... |
| |
On May 18, 2018 11:25:32 AM PDT, Linus Torvalds <torvalds@linux-foundation.org> wrote: >On Fri, May 18, 2018 at 10:24 AM Nadav Amit <namit@vmware.com> wrote: > >> Will it be ok just to use a global inline asm to set an “.include” >directive >> that gas would later process? (I can probably wrap it in a C macro so >it >> won’t be too disgusting) > >Maybe. I'd almost prefer it to be the automatic kind of thing that we >already do for C files using "-include". > > Linus
Unfortunately gcc doesn't guarantee that global assembly inlines will appear at the top of the file. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
| |