OSDN Git Service

libsigchain: intercept bsd_signal on lp32
authorDimitry Ivanov <dimitry@google.com>
Mon, 1 Aug 2016 21:13:37 +0000 (14:13 -0700)
committerDimitry Ivanov <dimitry@google.com>
Mon, 1 Aug 2016 21:20:22 +0000 (14:20 -0700)
bsd_signal is a deprecated synonym for the signal. Nevertheless
there are apps and libraries calling this function.

libsigchain needs to intercept these calls and handle them the same
way it handles signal() call.

Bug: http://b/30562229
Test: readelf --dyn-sym surfaceflinger and check that bsd_signal is exported for lp32
      and is not exported for lp64 binary version
Change-Id: If80e45502275b26c3ee4026ab12cadd77f8fbd3b

services/surfaceflinger/Android.mk

index 17ca10e..87ff355 100644 (file)
@@ -118,7 +118,8 @@ include $(CLEAR_VARS)
 
 LOCAL_CLANG := true
 
-LOCAL_LDFLAGS := -Wl,--version-script,art/sigchainlib/version-script.txt -Wl,--export-dynamic
+LOCAL_LDFLAGS_32 := -Wl,--version-script,art/sigchainlib/version-script32.txt -Wl,--export-dynamic
+LOCAL_LDFLAGS_64 := -Wl,--version-script,art/sigchainlib/version-script64.txt -Wl,--export-dynamic
 LOCAL_CFLAGS := -DLOG_TAG=\"SurfaceFlinger\"
 LOCAL_CPPFLAGS := -std=c++11