aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2012-03-29 12:57:05 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2012-03-29 05:57:05 -0700
commita1ecc15c2130165320af7555339eba5438116e38 (patch)
treec2585be0ceef694fd7a154ee77c781222f8ba179 /gcc
parent6401aaf5df140b05a9ff6405cbd180df3c9f620a (diff)
downloadgcc-a1ecc15c2130165320af7555339eba5438116e38.zip
gcc-a1ecc15c2130165320af7555339eba5438116e38.tar.gz
gcc-a1ecc15c2130165320af7555339eba5438116e38.tar.bz2
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. From-SVN: r185958
Diffstat (limited to 'gcc')
-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 0d75540..9d3d515 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 94c5274..acbc662 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}"