From 1141be7e561b8a157cf4c72e84a675329e29174f Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 7 Dec 2009 23:31:01 +0000 Subject: linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch. * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch. * config/sparc/linux64.h (ASM_SPEC): Likewise. From-SVN: r155065 --- gcc/config/sparc/linux.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'gcc/config/sparc/linux.h') diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h index 6dcce78..b12c881 100644 --- a/gcc/config/sparc/linux.h +++ b/gcc/config/sparc/linux.h @@ -98,9 +98,17 @@ along with GCC; see the file COPYING3. If not see /* The sun bundled assembler doesn't accept -Yd, (and neither does gas). It's safe to pass -s always, even if -g is not used. */ #undef ASM_SPEC -#define ASM_SPEC \ - "%{V} %{v:%{!V:-V}} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Wa,*:%*} -s \ - %{fpic|fPIC|fpie|fPIE:-K PIC} %(asm_cpu) %(asm_relax)" +#define ASM_SPEC "\ +%{V} \ +%{v:%{!V:-V}} \ +%{!Qn:-Qy} \ +%{n} \ +%{T} \ +%{Ym,*} \ +%{Wa,*:%*} \ +-s \ +%{fpic|fPIC|fpie|fPIE|findirect-dispatch:-K PIC} \ +%(asm_cpu) %(asm_relax)" #undef ASM_OUTPUT_ALIGNED_LOCAL #define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN) \ -- cgit v1.1