Fix linker compilation with timing enabled
Test: Build with TIMING set to 1 in linker_debug.h. Change-Id: Ia11021f6221bc985abddb379e813e4e353fd7149
This commit is contained in:
parent
21cf101f54
commit
7b9db347ae
|
@ -467,9 +467,11 @@ static ElfW(Addr) linker_main(KernelArgumentBlock& args, const char* exe_to_load
|
||||||
|
|
||||||
#if TIMING
|
#if TIMING
|
||||||
gettimeofday(&t1, nullptr);
|
gettimeofday(&t1, nullptr);
|
||||||
PRINT("LINKER TIME: %s: %d microseconds", g_argv[0], (int) (
|
PRINT("LINKER TIME: %s: %d microseconds", g_argv[0],
|
||||||
(((long long)t1.tv_sec * 1000000LL) + (long long)t1.tv_usec) -
|
static_cast<int>(((static_cast<long long>(t1.tv_sec) * 1000000LL) +
|
||||||
(((long long)t0.tv_sec * 1000000LL) + (long long)t0.tv_usec)));
|
static_cast<long long>(t1.tv_usec)) -
|
||||||
|
((static_cast<long long>(t0.tv_sec) * 1000000LL) +
|
||||||
|
static_cast<long long>(t0.tv_usec))));
|
||||||
#endif
|
#endif
|
||||||
#if STATS
|
#if STATS
|
||||||
PRINT("RELO STATS: %s: %d abs, %d rel, %d copy, %d symbol", g_argv[0],
|
PRINT("RELO STATS: %s: %d abs, %d rel, %d copy, %d symbol", g_argv[0],
|
||||||
|
|
Loading…
Reference in New Issue