Re: [PATCH] powerpc/vdso32: Drop -mabi=elfv1 for 32 bit objects
flat view
From: Segher Boessenkool <hidden>
Date: 2019-01-10 16:45:27
On Thu, Jan 10, 2019 at 08:10:43AM +0100, Christophe Leroy wrote:
Le 10/01/2019 à 02:42, Joel Stanley a écrit :quoted
From: Daniel Axtens <redacted> All 64-bit objects need to specify the flag to be compiled correctly, we just don't need it for 32-bit objects. GCC just ignored it, but clang doesn't.
quoted
+# clang refuses to accept -mabi=elfv1 for when using the +# 64-bit target in 32-bit mode +ifdef CONFIG_CC_IS_CLANGIf -mabi=elfv1 is unneeded even for GCC, why depend on CLANG ?
It is nonsensical to specify this flag when compiling -m32. Apparently
clang uses -mabi= to set the current ABI, which isn't quite correct
(although of course the name suggests that's what it does ;-) )
'-mabi=ABI-TYPE'
Extend the current ABI with a particular extension, or remove such
extension. Valid values are 'altivec', 'no-altivec',
'ibmlongdouble', 'ieeelongdouble', 'elfv1', 'elfv2'.
(It is harmless to use it with -m32 on GCC, because the option just sets a
flag, internally).
quoted
+ifdef CONFIG_PPC64 +AFLAGS_REMOVE_getcpu.o += -mabi=elfv1 +endif
Don't remove it, just never set it where not needed? Segher