Skip to content

Commit 3431a36

Browse files
committed
debug_logs
Signed-off-by: Ravi Kumar Soni <ravi.kumar.soni@intel.com>
1 parent 6f8ad29 commit 3431a36

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 16e41b6af775171557e675625ba13fb8892b2498 Mon Sep 17 00:00:00 2001
2+
From: Ravi Kumar Soni <ravi.kumar.soni@intel.com>
3+
Date: Tue, 25 Mar 2025 13:52:30 +0000
4+
Subject: [PATCH] linker debug log
5+
6+
Signed-off-by: Ravi Kumar Soni <ravi.kumar.soni@intel.com>
7+
---
8+
linker/linker.cpp | 2 ++
9+
1 file changed, 2 insertions(+)
10+
11+
diff --git a/linker/linker.cpp b/linker/linker.cpp
12+
index bcc25000f..adbab5ad4 100644
13+
--- a/linker/linker.cpp
14+
+++ b/linker/linker.cpp
15+
@@ -3489,6 +3489,8 @@ static std::string get_ld_config_file_path(const char* executable_path) {
16+
#ifdef USE_LD_CONFIG_FILE
17+
// This is a debugging/testing only feature. Must not be available on
18+
// production builds.
19+
+ static_assert(false, "USE_LD_CONFIG_FILE is not supported");
20+
+ __linker_log(ANDROID_LOG_INFO, "rks_log in #ifdef USE_LD_CONFIG_FILE");
21+
const char* ld_config_file_env = getenv("LD_CONFIG_FILE");
22+
if (ld_config_file_env != nullptr && file_exists(ld_config_file_env)) {
23+
return ld_config_file_env;
24+
--
25+
2.34.1
26+

0 commit comments

Comments
 (0)