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: Jan Beulich <JBeulich at novell dot com>
- Cc: sedat dot dilek at gmail dot com, Alan Modra <amodra at bigpond dot net dot au>, Ingo Molnar <mingo at elte dot hu>, "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 09:32:56 -0700
- Subject: Re: PATCH: Add --size-check=[error|warning]
- References: <AANLkTinDTyupNgZR-0izCWrpwOnE1wEcubn+M3o=Mgy2@mail.gmail.com> <4D7E095802000078000363D5@vpn.id2.novell.com>
On 03/14/2011 04:26 AM, Jan Beulich wrote:
>
> Making the kernel build system check for certain newly introduced
> gas options would again require changes to the kernel sources,
> which is precisely what is impossible to do for past kernel releases
> (and bisection in particular).
>
But something like "make CC='gcc -Wa,--size-check=warning'" should work,
I believe (tweaking may be required, but that's the idea). Passing an
option to the assembler is a helluva lot easier than redirecting to a
different assembler.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.