summaryrefslogtreecommitdiff
path: root/linker/linker_main.cpp
diff options
context:
space:
mode:
authorVic Yang <victoryang@google.com>2019-07-25 10:39:27 -0700
committerVic Yang <victoryang@google.com>2019-07-25 10:39:27 -0700
commit542db792dc3ad9dd73a1c22c031c16c2a3c85690 (patch)
treeee23a63bb39ca1e5c2c372005b889464d7466bca /linker/linker_main.cpp
parentd5c0a508bc02da51899fde9f20f7b91fd6f9cb89 (diff)
Fix linker compilation when STATS is set
Test: Compiles with STATS set in linker_debug.h Change-Id: I8ea6ca9a61ad316473dab51999885008f2721cee
Diffstat (limited to 'linker/linker_main.cpp')
-rw-r--r--linker/linker_main.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/linker/linker_main.cpp b/linker/linker_main.cpp
index 612f52f88..11d3d2914 100644
--- a/linker/linker_main.cpp
+++ b/linker/linker_main.cpp
@@ -490,11 +490,7 @@ static ElfW(Addr) linker_main(KernelArgumentBlock& args, const char* exe_to_load
static_cast<long long>(t0.tv_usec))));
#endif
#if STATS
- PRINT("RELO STATS: %s: %d abs, %d rel, %d copy, %d symbol", g_argv[0],
- linker_stats.count[kRelocAbsolute],
- linker_stats.count[kRelocRelative],
- linker_stats.count[kRelocCopy],
- linker_stats.count[kRelocSymbol]);
+ print_linker_stats();
#endif
#if COUNT_PAGES
{