From 3431a3654ceb413052613550fec72e0e3f12a31b Mon Sep 17 00:00:00 2001 From: Ravi Kumar Soni Date: Tue, 25 Mar 2025 13:53:57 +0000 Subject: [PATCH] debug_logs Signed-off-by: Ravi Kumar Soni --- .../bionic/0006-linker-debug-log.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 aosp_diff/preliminary/bionic/0006-linker-debug-log.patch diff --git a/aosp_diff/preliminary/bionic/0006-linker-debug-log.patch b/aosp_diff/preliminary/bionic/0006-linker-debug-log.patch new file mode 100644 index 0000000000..5b970fbb26 --- /dev/null +++ b/aosp_diff/preliminary/bionic/0006-linker-debug-log.patch @@ -0,0 +1,26 @@ +From 16e41b6af775171557e675625ba13fb8892b2498 Mon Sep 17 00:00:00 2001 +From: Ravi Kumar Soni +Date: Tue, 25 Mar 2025 13:52:30 +0000 +Subject: [PATCH] linker debug log + +Signed-off-by: Ravi Kumar Soni +--- + linker/linker.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/linker/linker.cpp b/linker/linker.cpp +index bcc25000f..adbab5ad4 100644 +--- a/linker/linker.cpp ++++ b/linker/linker.cpp +@@ -3489,6 +3489,8 @@ static std::string get_ld_config_file_path(const char* executable_path) { + #ifdef USE_LD_CONFIG_FILE + // This is a debugging/testing only feature. Must not be available on + // production builds. ++ static_assert(false, "USE_LD_CONFIG_FILE is not supported"); ++ __linker_log(ANDROID_LOG_INFO, "rks_log in #ifdef USE_LD_CONFIG_FILE"); + const char* ld_config_file_env = getenv("LD_CONFIG_FILE"); + if (ld_config_file_env != nullptr && file_exists(ld_config_file_env)) { + return ld_config_file_env; +-- +2.34.1 +