commit 1cc729c5221d0ce4c80786ccdcb2de4a6ca382b6 Author: Daniel Kolesa Date: Sun Jan 23 21:55:43 2022 +0100 drop some library checks This calls readelf and won't work with LTO'd setups. diff --git a/config/makefiles/rust.mk b/config/makefiles/rust.mk index 401c2933..ade4f1da 100644 --- a/config/makefiles/rust.mk +++ b/config/makefiles/rust.mk @@ -444,22 +444,6 @@ RUST_LIBRARY_DEP_FILE := $(basename $(RU RUST_LIBRARY_DEPS := $(wordlist 2, 10000000, $(if $(wildcard $(RUST_LIBRARY_DEP_FILE)),$(shell cat $(RUST_LIBRARY_DEP_FILE)))) $(RUST_LIBRARY_FILE): $(CARGO_FILE) $(if $(RUST_LIBRARY_DEPS),$(RUST_LIBRARY_DEPS), force-cargo-library-build) $(if $(RUST_LIBRARY_DEPS),+$(MAKE) force-cargo-library-build,:) -# When we are building in --enable-release mode; we add an additional check to confirm -# that we are not importing any networking-related functions in rust code. This reduces -# the chance of proxy bypasses originating from rust code. -# The check only works when rust code is built with -Clto but without MOZ_LTO_RUST_CROSS. -# Sanitizers and sancov also fail because compiler-rt hooks network functions. -ifndef MOZ_PROFILE_GENERATE -ifeq ($(OS_ARCH), Linux) -ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN)) -ifndef MOZ_LTO_RUST_CROSS -ifneq (,$(filter -Clto,$(cargo_rustc_flags))) - $(call py_action,check_binary,--target --networking $@) -endif -endif -endif -endif -endif define make_default_rule $(1):