public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][Revised] Pass -no_pie on SYSTEMSPEC for darwin11
@ 2011-06-18  5:52 Jack Howarth
  2011-06-18 14:53 ` Mike Stump
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Jack Howarth @ 2011-06-18  5:52 UTC (permalink / raw)
  To: gcc-patches; +Cc: mikestump, iains

  The gcj compiler needs to pass -no_pie for linkage on darwin11 due to the new -pie
default of the linker. The attached patch accomplishes this by passing -no_pie on SYSTEMSPEC
for *-*-darwin[12]*. Since Darwin10 supports -no_pie in its linker, I included it in the
triplet match to simplify the syntax. Bootstrap and tested on x86_64-apple-darwin11.
Okay for gcc trunk with PR added to comment as requested?
               Jack
ps This change also works for gcc-4_6-branch in concert with a backport of
r175089 and r175108.

2011-06-17  Jack Howarth <howarth@bromo.med.uc.edu>

	PR target/49461
	* libjava/configure.ac (SYSTEMSPEC): Pass -no_pie for darwin11.
	* libjava/configure: Regenerate.


Index: libjava/configure.ac
===================================================================
--- libjava/configure.ac	(revision 175131)
+++ libjava/configure.ac	(working copy)
@@ -898,9 +898,12 @@ case "${host}" in
         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
       fi
     ;;
-    *-*-darwin[[912]]*)
+    *-*-darwin9*)
       SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
     ;;
+    *-*-darwin[[12]]*)
+      SYSTEMSPEC="-no_pie %{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
+    ;;
     *)
       SYSTEMSPEC=
     ;;

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-06-30 16:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-18  5:52 [PATCH][Revised] Pass -no_pie on SYSTEMSPEC for darwin11 Jack Howarth
2011-06-18 14:53 ` Mike Stump
2011-06-18 19:02   ` Jack Howarth
2011-06-18 15:28 ` Mike Stump
2011-06-18 15:32 ` Mike Stump
2011-06-18 15:33   ` Jack Howarth
2011-06-19 18:20   ` Mike Stump
2011-06-19 20:18     ` Jack Howarth
2011-06-19 23:20       ` Mike Stump
2011-06-19 23:33         ` Jack Howarth
     [not found]           ` <47DFC4C2-9E8E-40BD-BA97-2314A8263A68@comcast.net>
     [not found]             ` <20110619235544.GA32119@bromo.med.uc.edu>
2011-06-30 16:40               ` Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).