commit | f42426ec380f66ccdf28e463c5386c3b611a6b94 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Fri Nov 05 18:38:09 2021 +0800 |
committer | Yi Kong <yikong@google.com> | Fri Nov 05 17:41:30 2021 +0000 |
tree | 991f3c1f0299d83cad298fd9ec0ab239f9feaa91 | |
parent | b847977ee4aee61f737467ada9992a5a45ac6d77 [diff] |
Fix build with global ThinLTO resolv_unsolicited_listener uses symbols from some shared libs that happens to be re-exported by one of the static libs in non-LTO mode. ThinLTO is more aggressive/accurate at pruning unused symbols, thus the build fails due to missing symbols. Fixed by explicitly listing the dependent libs. Bug: 169004486 Test: m GLOBAL_THINLTO=true resolv_unsolicited_listener Change-Id: I1f633be1802ab00c5746eec511757e92109401c9
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.