[PATCH][config]Add missing crt*.o in start and end file specs for linux-android.h

Doug Kwan (關振德) dougkwan@google.com
Fri Aug 26 07:30:00 GMT 2011


Hi,

    We received this from Intel and would like to check in the trunk.
Could the maintainers of gcc/config take a look?

Thanks.

-Doug


2011-08-25  Mark D Horn <mark.d.horn@intel.com>

        config/linux-android.h (ANDROID_STARTFILE_SPEC, ANDROID_ENDFILE_SPEC):
        Add missing crt*.o objects for shared building a library.
-------------- next part --------------
Index: gcc/config/linux-android.h
===================================================================
--- gcc/config/linux-android.h	(revision 178053)
+++ gcc/config/linux-android.h	(working copy)
@@ -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}"


More information about the Gcc-patches mailing list