Re: [PATCH 2/6] x86: bug: prevent gcc distortions

From: hpa
Date: Fri May 18 2018 - 13:38:10 EST


On May 18, 2018 11:25:32 AM PDT, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>On Fri, May 18, 2018 at 10:24 AM Nadav Amit <namit@xxxxxxxxxx> 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.