Commit 1141be7e by Eric Botcazou Committed by Eric Botcazou

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
parent 74e12783
2009-12-07 Eric Botcazou <ebotcazou@adacore.com>
* config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch.
* config/sparc/linux64.h (ASM_SPEC): Likewise.
2009-12-07 Richard Henderson <rth@redhat.com> 2009-12-07 Richard Henderson <rth@redhat.com>
PR debug/42299 PR debug/42299
...@@ -98,9 +98,17 @@ along with GCC; see the file COPYING3. If not see ...@@ -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). /* 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. */ It's safe to pass -s always, even if -g is not used. */
#undef ASM_SPEC #undef ASM_SPEC
#define ASM_SPEC \ #define ASM_SPEC "\
"%{V} %{v:%{!V:-V}} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Wa,*:%*} -s \ %{V} \
%{fpic|fPIC|fpie|fPIE:-K PIC} %(asm_cpu) %(asm_relax)" %{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 #undef ASM_OUTPUT_ALIGNED_LOCAL
#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN) \ #define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN) \
......
...@@ -235,7 +235,8 @@ along with GCC; see the file COPYING3. If not see ...@@ -235,7 +235,8 @@ along with GCC; see the file COPYING3. If not see
%{T} \ %{T} \
%{Ym,*} \ %{Ym,*} \
%{Wa,*:%*} \ %{Wa,*:%*} \
-s %{fpic|fPIC|fpie|fPIE:-K PIC} \ -s \
%{fpic|fPIC|fpie|fPIE|findirect-dispatch:-K PIC} \
%{mlittle-endian:-EL} \ %{mlittle-endian:-EL} \
%(asm_cpu) %(asm_arch) %(asm_relax)" %(asm_cpu) %(asm_arch) %(asm_relax)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment