diff options
author | Dave Allison <dallison@google.com> | 2014-07-10 01:54:57 +0000 |
---|---|---|
committer | Dave Allison <dallison@google.com> | 2014-07-10 01:54:57 +0000 |
commit | 3d14eb620716e92c21c4d2c2d11a95be53319791 (patch) | |
tree | aadce4d6bb70e549b74b537c6f75617cf533576a /sigchainlib | |
parent | 34e826ccc80dc1cf7c4c045de6b7f8360d504ccf (diff) | |
download | art-3d14eb620716e92c21c4d2c2d11a95be53319791.zip art-3d14eb620716e92c21c4d2c2d11a95be53319791.tar.gz art-3d14eb620716e92c21c4d2c2d11a95be53319791.tar.bz2 |
Revert "Add implicit null and stack checks for x86"
It breaks cross compilation with x86_64.
This reverts commit 34e826ccc80dc1cf7c4c045de6b7f8360d504ccf.
Change-Id: I34ba07821fc0a022fda33a7ae21850957bbec5e7
Diffstat (limited to 'sigchainlib')
-rw-r--r-- | sigchainlib/Android.mk | 13 | ||||
-rw-r--r-- | sigchainlib/sigchain.cc | 16 |
2 files changed, 0 insertions, 29 deletions
diff --git a/sigchainlib/Android.mk b/sigchainlib/Android.mk index 20c8cac..8e25339 100644 --- a/sigchainlib/Android.mk +++ b/sigchainlib/Android.mk @@ -28,16 +28,3 @@ LOCAL_SHARED_LIBRARIES := liblog libdl LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.common_build.mk include $(BUILD_SHARED_LIBRARY) - -# Build host library. -include $(CLEAR_VARS) -LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION) -LOCAL_MODULE_TAGS := optional -LOCAL_IS_HOST_MODULE := true -LOCAL_CFLAGS += $(ART_HOST_CFLAGS) -LOCAL_SRC_FILES := sigchain.cc -LOCAL_MODULE:= libsigchain -LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk -LOCAL_LDLIBS = -ldl -LOCAL_MULTILIB := both -include $(BUILD_HOST_SHARED_LIBRARY) diff --git a/sigchainlib/sigchain.cc b/sigchainlib/sigchain.cc index 73cc9eb..26e7d31 100644 --- a/sigchainlib/sigchain.cc +++ b/sigchainlib/sigchain.cc @@ -14,13 +14,7 @@ * limitations under the License. */ -#ifdef HAVE_ANDROID_OS #include <android/log.h> -#else -#include <stdarg.h> -#include <iostream> -#endif - #include <dlfcn.h> #include <signal.h> #include <stdio.h> @@ -73,11 +67,7 @@ static void log(const char* format, ...) { va_list ap; va_start(ap, format); vsnprintf(buf, sizeof(buf), format, ap); -#ifdef HAVE_ANDROID_OS __android_log_write(ANDROID_LOG_ERROR, "libsigchain", buf); -#else - std::cout << buf << "\n"; -#endif va_end(ap); } @@ -119,16 +109,10 @@ void InvokeUserSignalHandler(int sig, siginfo_t* info, void* context) { if ((action.sa_flags & SA_SIGINFO) == 0) { if (action.sa_handler != NULL) { action.sa_handler(sig); - } else { - signal(sig, SIG_DFL); - raise(sig); } } else { if (action.sa_sigaction != NULL) { action.sa_sigaction(sig, info, context); - } else { - signal(sig, SIG_DFL); - raise(sig); } } } |