From: James Cowgill Date: Tue, 5 May 2015 15:39:38 +0000 (+0100) Subject: MIPS: Drop #ifdef __ELF__ in definition of LEAF_MIPS32R2 X-Git-Tag: pixman-0.33.2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf086d4949092861dc3729465a3881d229cc1060;p=platform%2Fupstream%2Fpixman.git MIPS: Drop #ifdef __ELF__ in definition of LEAF_MIPS32R2 Commit 6d2cf40166d8 ("MIPS: Fix exported symbols in public API") attempted to add a .hidden assembly directive, conditional on the code being compiled for an ELF target. Unfortunately the #ifdef added was already inside a macro and wasn't expanded properly by the preprocessor. Fix by removing the check. It's unlikely there are many non-ELF MIPS systems around anyway. Fixes: Bug 83358 (https://bugs.freedesktop.org/83358) Fixes: 6d2cf40166d8 ("MIPS: Fix exported symbols in public API") Signed-off-by: James Cowgill Cc: Vicente Olivert Riera Cc: Nemanja Lukic Acked-by: Siarhei Siamashka Reviewed-by: Pekka Paalanen --- diff --git a/pixman/pixman-mips-dspr2-asm.h b/pixman/pixman-mips-dspr2-asm.h index 11849bd..e44edd6 100644 --- a/pixman/pixman-mips-dspr2-asm.h +++ b/pixman/pixman-mips-dspr2-asm.h @@ -72,10 +72,8 @@ #define LEAF_MIPS32R2(symbol) \ .globl symbol; \ .align 2; \ -#ifdef __ELF__ .hidden symbol; \ .type symbol, @function; \ -#endif .ent symbol, 0; \ symbol: .frame sp, 0, ra; \ .set push; \