Add libLLVMBitReader, libLLVMCore, libLLVMSupport

Change-Id: Iaf29e6af4d6dd8099361e345e1a7e0c6974b7d78
diff --git a/Android.mk b/Android.mk
index 939d7c6..0b66f11 100644
--- a/Android.mk
+++ b/Android.mk
@@ -126,6 +126,12 @@
 LOCAL_CFLAGS += -DUSE_LIBBCC_SHA1SUM
 endif
 
+# -Wl,--exclude-libs=ALL would hide most of the symbols in the shared library
+# and reduces the size of libbcc.so by about 800k.
+# As libLLVMBitReader:libLLVMCore:libLLVMSupport are used by pixelflinger2,
+# use below instead.
+LOCAL_LDFLAGS += -Wl,--exclude-libs=libLLVMARMDisassembler:libLLVMARMAsmPrinter:libLLVMMCParser:libLLVMARMCodeGen:libLLVMARMInfo:libLLVMSelectionDAG:libLLVMAsmPrinter:libLLVMCodeGen:libLLVMLinker:libLLVMJIT:libLLVMTarget:libLLVMMC:libLLVMScalarOpts:libLLVMInstCombine:libLLVMipo:libLLVMipa:libLLVMTransformUtils:libLLVMSystem:libLLVMAnalysis
+
 # This hides most of the symbols in the shared library and reduces the size
 # of libbcc.so by about 800k.
 LOCAL_LDFLAGS += -Wl,--exclude-libs=ALL