Create linker_log[_va_list] functions
A later linker CL defines a function that needs to forward a printf format
and argument list to TRACE(), but there is no version of the TRACE macro
that works with a va_list. The CL also needs to check the verbosity level,
using a slow path if tracing is enabled, so define LINKER_VERBOSITY_xxx
macros.
Bug: none
Test: bionic unit tests
Change-Id: I578d36a12dc40f9a651956b4b09adc1a7c644e24
diff --git a/linker/Android.bp b/linker/Android.bp
index 3b25d12..8e810d2 100644
--- a/linker/Android.bp
+++ b/linker/Android.bp
@@ -156,6 +156,7 @@
"linker_dlwarning.cpp",
"linker_cfi.cpp",
"linker_config.cpp",
+ "linker_debug.cpp",
"linker_gdb_support.cpp",
"linker_globals.cpp",
"linker_libc_support.c",
@@ -460,6 +461,7 @@
// Parts of the linker that we're testing.
"linker_block_allocator.cpp",
"linker_config.cpp",
+ "linker_debug.cpp",
"linker_test_globals.cpp",
"linker_utils.cpp",
],