Hide all symbols except those explicitly exported by libnetd_resolv
This avoids polluting the namespace with extraneous symbols which weren't supposed to become part of the public interface. Unintended exports can undermine ABI compatibility, especially now that libnetd_resolv depends on libraries also used by netd (libbase, liblog). This leaves us with the following dynamic symbols: nm -D out/target/product/taimen/system/lib64/libnetd_resolv.so | grep ' T ' 00000000000065f0 T _resolv_delete_cache_for_net 0000000000006550 T _resolv_flush_cache_for_net 0000000000006828 T _resolv_set_nameservers_for_net 00000000000002e0 T android_getaddrinfofornet 0000000000000340 T android_getaddrinfofornetcontext 00000000000037b0 T android_gethostbyaddrfornet 0000000000003860 T android_gethostbyaddrfornetcontext 0000000000003658 T android_gethostbynamefornet 0000000000003728 T android_gethostbynamefornetcontext 000000000000c2f0 T android_net_res_stats_aggregate 0000000000007300 T android_net_res_stats_get_info_for_net 000000000000c808 T android_net_res_stats_get_usable_servers Test: build and flash a device, then run netd_integration_test Change-Id: Iafb03282eba4217087a14409e0cfdea639133b68
Loading
Please register or sign in to comment