x86, gcc-4.6: Use gcc -m options when building vdso
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 14 Dec 2010 00:01:38 +0000 (16:01 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 22:43:10 +0000 (14:43 -0800)
commited215240d3a6a99573660e33e3034202368d025e
tree7986c39f64291fea993359bdb9b96279f1ff6159
parent43807eba1303b4b4606debd444f4fdc93ef560d7
x86, gcc-4.6: Use gcc -m options when building vdso

commit de2a8cf98ecdde25231d6c5e7901e2cffaf32af9 upstream.

The vdso Makefile passes linker-style -m options not to the linker but
to gcc.  This happens to work with earlier gcc, but fails with gcc
4.6.  Pass gcc-style -m options, instead.

Note: all currently supported versions of gcc supports -m32, so there
is no reason to conditionalize it any more.

Reported-by: H. J. Lu <hjl.tools@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
LKML-Reference: <tip-*@git.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/vdso/Makefile