Re: [PATCH 2/6] x86: bug: prevent gcc distortions
From: Nadav Amit
Date: Fri May 18 2018 - 14:22:10 EST
Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Fri, May 18, 2018 at 12:02 PM Nadav Amit <namit@xxxxxxxxxx> wrote:
>
>> I can add a -Wa,[filename.s] switch. It works, but sort of undocumented.
>
> Oh, if it assembles things together, then that sounds optimal.
>
> And yes, like hpa says, we should make sure that behavior is acknowledged
> by the GNU as people, so that they then don't come back and say "hey, now
> we assemble things as separate units".
>
> That said, the "separate units" model really doesn't make much sense now
> that I think about it, because 'as' supports only one output file. So I
> guess the as people wouldn't have any issues with just accepting the
> "concatenate all input files" syntax.
Gnu ASM manual says: "Each time you run as it assembles exactly one source
program. The source program is made up of one or more files.â