From: Vicente Olivert Riera <vincent.ri...@imgtec.com> 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 using an assembly .if directive which is handled by the assembler later on. Fixes: Bug 83358 (https://bugs.freedesktop.org/83358) Fixes: 6d2cf40166d8 ("MIPS: Fix exported symbols in public API") Signed-off-by: Vicente Olivert Riera <vincent.ri...@imgtec.com> Signed-off-by: James Cowgill <james...@cowgill.org.uk> Cc: Nemanja Lukic <nemanja.lu...@rt-rk.com> --- pixman/pixman-mips-dspr2-asm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pixman/pixman-mips-dspr2-asm.h b/pixman/pixman-mips-dspr2-asm.h index 11849bd..b2696d0 100644 --- a/pixman/pixman-mips-dspr2-asm.h +++ b/pixman/pixman-mips-dspr2-asm.h @@ -72,10 +72,10 @@ #define LEAF_MIPS32R2(symbol) \ .globl symbol; \ .align 2; \ -#ifdef __ELF__ + .if __ELF__; \ .hidden symbol; \ .type symbol, @function; \ -#endif + .endif; \ .ent symbol, 0; \ symbol: .frame sp, 0, ra; \ .set push; \ -- 2.1.4 _______________________________________________ Pixman mailing list Pixman@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/pixman