• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From 34a534bda4181abfe6a25d09778c431d3e9585bd Mon Sep 17 00:00:00 2001
2From: David 'Digit' Turner <digit@google.com>
3Date: Tue, 21 Feb 2012 15:00:02 +0100
4Subject: Use the correct CRT files with -shared link option
5
6Change-Id: I5f9b28cc3bcf7d3a0ead9777d26b563ff6e82760
7---
8 gcc-4.4.3/gcc/config/linux-android.h |    4 ++--
9 2 files changed, 4 insertions(+), 4 deletions(-)
10
11diff --git a/gcc-4.4.3/gcc/config/linux-android.h b/gcc-4.4.3/gcc/config/linux-android.h
12index d30e157..1edc398 100644
13--- a/gcc-4.4.3/gcc/config/linux-android.h
14+++ b/gcc-4.4.3/gcc/config/linux-android.h
15@@ -54,7 +54,7 @@
16
17 #define ANDROID_STARTFILE_SPEC						\
18   "%{!shared:"								\
19-  "  %{static: crtbegin_static%O%s;: crtbegin_dynamic%O%s}}"
20+  "  %{static: crtbegin_static%O%s;: crtbegin_dynamic%O%s};: crtbegin_so%O%s}"
21
22 #define ANDROID_ENDFILE_SPEC \
23-  "%{!shared: crtend_android%O%s}"
24+  "%{!shared: crtend_android%O%s;: crtend_so%O%s}"
25--
261.7.6.rc0
27
28