This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Add --size-check=[error|warning]
- From: "H. Peter Anvin" <hpa at zytor dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Jan Beulich <JBeulich at novell dot com>, sedat dot dilek at gmail dot com, Ingo Molnar <mingo at elte dot hu>, amodra at gmail dot com, "H.J. Lu" <hjl dot tools at gmail dot com>, Thomas Gleixner <tglx at linutronix dot de>, Andrew Morton <akpm at linux-foundation dot org>, Linus Torvalds <torvalds at linux-foundation dot org>, binutils <binutils at sourceware dot org>, LKML <linux-kernel at vger dot kernel dot org>
- Date: Mon, 14 Mar 2011 11:01:46 -0700
- Subject: Re: PATCH: Add --size-check=[error|warning]
- References: <AANLkTinDTyupNgZR-0izCWrpwOnE1wEcubn+M3o=Mgy2@mail.gmail.com> <4D7E095802000078000363D5@vpn.id2.novell.com> <AANLkTikUKE4xzf-NJtK3vMCQmNEYiAXZzi2vMZs9Zy4W@mail.gmail.com> <AANLkTimmi7A6cXo8BCHWtBDmauZD4_-dNjThpn1J9DkW@mail.gmail.com> <4D7E166C0200007800036451@vpn.id2.novell.com> <mcrtyf53dci.fsf@google.com>
On 03/14/2011 08:56 AM, Ian Lance Taylor wrote:
> "Jan Beulich" <JBeulich@novell.com> writes:
>
>> No - $(AS) isn't being used to translate .S files, $(CC) is being used
>> instead. That's why I pointed at the necessary -B option (so that
>> the compiler would be able to locate the wrapper H.J. suggested).
>
> You could also just put a -Wa option in your $(CC). That seems simpler
> than a -B option.
>
> (I don't really care about this issue one way or another.)
>
-Wa is definitely the sane way to do it. The -B thing came in if you
have to run a patched version of as, which is extremely painful.
-hpa