summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-29 12:57:05 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-29 12:57:05 +0000
commitc0dc946a075bb2405133645962920916c2b02fdb (patch)
treec2585be0ceef694fd7a154ee77c781222f8ba179
parent59e4072c203d4360f7a7ea47cae5754b32f1ee23 (diff)
downloadppe42-gcc-c0dc946a075bb2405133645962920916c2b02fdb.tar.gz
ppe42-gcc-c0dc946a075bb2405133645962920916c2b02fdb.zip
Use crtbegin_so%O%s/crtend_so%O%s for -mandroid -shared
2012-03-29 H.J. Lu <hongjiu.lu@intel.com> * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use crtbegin_so%O%s for -shared. (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185958 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/linux-android.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0d75540b292..9d3d5152d08 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
+ crtbegin_so%O%s for -shared.
+ (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
+
2012-03-29 Richard Guenther <rguenther@suse.de>
* tree-flow.h (struct pre_expr_d): Remove forward declaration.
diff --git a/gcc/config/linux-android.h b/gcc/config/linux-android.h
index 94c52748fdb..acbc6627f95 100644
--- a/gcc/config/linux-android.h
+++ b/gcc/config/linux-android.h
@@ -53,8 +53,8 @@
"%{!static: -ldl}"
#define ANDROID_STARTFILE_SPEC \
- "%{!shared:" \
+ "%{shared: crtbegin_so%O%s;:" \
" %{static: crtbegin_static%O%s;: crtbegin_dynamic%O%s}}"
#define ANDROID_ENDFILE_SPEC \
- "%{!shared: crtend_android%O%s}"
+ "%{shared: crtend_so%O%s;: crtend_android%O%s}"
OpenPOWER on IntegriCloud