Skip to contentSkip to conversation

aserver: fix building on ppc64le

PATCH Applied [email protected] 2 participants 2 messages Feb 22, 2017 – Feb 23, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aserver: fix building on ppc64le

From: Breno Leitao <[email protected]>

Currently aserver fails to build when using parameter --without-versioned, due to an workaround for ppc64 (06221f86d207cb33ddd4867ca5301eeb247c4400). This workaround is not required anymore on the ppc64 ABI v2, and, in fact is breaking the compilation. Reverting this commit

---
 include/alsa-symbols.h | 17 -----------------
 1 file changed, 17 deletions(-)
include/alsa-symbols.h +0 -17
index 51cb982..eeacfdb 100644
@@ -29,19 +29,10 @@
 #define INTERNAL_CONCAT2_2(Pre, Post) Pre##Post
 #define INTERNAL(Name) INTERNAL_CONCAT2_2(__, Name)
 
-#ifdef __powerpc64__
-# define symbol_version(real, name, version) 			\
-	__asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@" #version);	\
-	__asm__ (".symver ." ASM_NAME(#real) ",." ASM_NAME(#name) "@" #version)
-# define default_symbol_version(real, name, version) 		\
-	__asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@@" #version);	\
-	__asm__ (".symver ." ASM_NAME(#real) ",." ASM_NAME(#name) "@@" #version)
-#else
 # define symbol_version(real, name, version) \
 	__asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@" #version)
 # define default_symbol_version(real, name, version) \
 	__asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@@" #version)
-#endif
 
 #ifdef USE_VERSIONED_SYMBOLS
 #define use_symbol_version(real, name, version) \
@@ -50,13 +41,6 @@
 		default_symbol_version(real, name, version)
 #else
 #define use_symbol_version(real, name, version) /* nothing */
-#ifdef __powerpc64__
-#define use_default_symbol_version(real, name, version) \
-	__asm__ (".weak " ASM_NAME(#name)); 			\
-	__asm__ (".weak ." ASM_NAME(#name)); 			\
-	__asm__ (".set " ASM_NAME(#name) "," ASM_NAME(#real));		\
-	__asm__ (".set ." ASM_NAME(#name) ",." ASM_NAME(#real))
-#else
 #if defined(__alpha__) || defined(__mips__)
 #define use_default_symbol_version(real, name, version) \
         __asm__ (".weak " ASM_NAME(#name)); \
@@ -67,6 +51,5 @@
 	__asm__ (".set " ASM_NAME(#name) "," ASM_NAME(#real))
 #endif
 #endif
-#endif
 
 #endif /* __ALSA_SYMBOLS_H */
Signature · 1 line
1.9.3
Applied
#1 lore raw
Quoted 10 lines · On Wed, 22 Feb 2017 20:45:00 +0100, [email protected] wrote:

From: Breno Leitao <[email protected]>

Currently aserver fails to build when using parameter --without-versioned, due to an workaround for ppc64 (06221f86d207cb33ddd4867ca5301eeb247c4400). This workaround is not required anymore on the ppc64 ABI v2, and, in fact is breaking the compilation. Reverting this commit

Applied, thanks.

Takashi