Skip to content

Commit

Permalink
* config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch.
Browse files Browse the repository at this point in the history
	* config/sparc/linux64.h (ASM_SPEC): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155065 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
ebotcazou committed Dec 7, 2009
1 parent afed704 commit f254502
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
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>

PR debug/42299
Expand Down
14 changes: 11 additions & 3 deletions gcc/config/sparc/linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down
3 changes: 2 additions & 1 deletion gcc/config/sparc/linux64.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ along with GCC; see the file COPYING3. If not see
%{T} \
%{Ym,*} \
%{Wa,*:%*} \
-s %{fpic|fPIC|fpie|fPIE:-K PIC} \
-s \
%{fpic|fPIC|fpie|fPIE|findirect-dispatch:-K PIC} \
%{mlittle-endian:-EL} \
%(asm_cpu) %(asm_arch) %(asm_relax)"

Expand Down

0 comments on commit f254502

Please sign in to comment.