aboutsummaryrefslogtreecommitdiff
path: root/build/tools/toolchain-patches/gcc
diff options
context:
space:
mode:
authorMark D Horn <mark.d.horn@intel.com>2011-07-13 16:16:29 -0700
committerMark D Horn <mark.d.horn@intel.com>2011-07-13 19:09:47 -0700
commit17a838a0406355ba3a1d5eb8c53ff3ba42955899 (patch)
tree0ae414fcff13de4c52ad17c8640d10963bad5587 /build/tools/toolchain-patches/gcc
parent770290ad4fe93628763cdbc6fe27f1bead07dfba (diff)
downloadndk-17a838a0406355ba3a1d5eb8c53ff3ba42955899.tar.gz
Use the correct CRT files with shared link option
Change-Id: I0b89d13cbc65f19fc10aa1db92f59c2779054fa1 Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Diffstat (limited to 'build/tools/toolchain-patches/gcc')
-rw-r--r--build/tools/toolchain-patches/gcc/0005-Use-the-correct-CRT-files-with-shared-link-option.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/build/tools/toolchain-patches/gcc/0005-Use-the-correct-CRT-files-with-shared-link-option.patch b/build/tools/toolchain-patches/gcc/0005-Use-the-correct-CRT-files-with-shared-link-option.patch
new file mode 100644
index 000000000..01500b314
--- /dev/null
+++ b/build/tools/toolchain-patches/gcc/0005-Use-the-correct-CRT-files-with-shared-link-option.patch
@@ -0,0 +1,28 @@
+From e07d9cc9269f72a90853b31d59729aefb5ca74f3 Mon Sep 17 00:00:00 2001
+From: Mark D Horn <mark.d.horn@intel.com>
+Date: Wed, 13 Jul 2011 16:07:35 -0700
+Subject: [PATCH] Use the correct CRT files with -shared link option
+
+Change-Id: I5f9b28cc3bcf7d3a0ead9777d26b563ff6e82760
+Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
+---
+ gcc-4.4.3/gcc/config/linux-android.h | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/gcc-4.4.3/gcc/config/linux-android.h b/gcc-4.4.3/gcc/config/linux-android.h
+index c1f8f7a..3118c42 100644
+--- a/gcc-4.4.3/gcc/config/linux-android.h
++++ b/gcc-4.4.3/gcc/config/linux-android.h
+@@ -54,7 +54,7 @@
+
+ #define ANDROID_STARTFILE_SPEC \
+ "%{!shared:" \
+- " %{static: crtbegin_static%O%s;: crtbegin_dynamic%O%s}}"
++ " %{static: crtbegin_static%O%s;: crtbegin_dynamic%O%s};: crtbegin_so%O%s}"
+
+ #define ANDROID_ENDFILE_SPEC \
+- "%{!shared: crtend_android%O%s}"
++ "%{!shared: crtend_android%O%s;: crtend_so%O%s}"
+--
+1.7.1
+