diff options
author | Allen Webb <allenwebb@google.com> | 2018-12-05 15:53:41 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-12-14 22:40:31 -0800 |
commit | eb890d8891c23706bf1be934b4d73655b768826a (patch) | |
tree | 0af632b4111ed2cc94b5a1a7e13ccda2c1232a7f /Makefile.toolchain | |
parent | 4d15f8668fbadac39604c6e015a86c1634162584 (diff) | |
download | chrome-ec-eb890d8891c23706bf1be934b4d73655b768826a.tar.gz |
Makefiles: Set fuzz targets to use the correct CROSS_COMPILE.
This addresses a cross compilation bug for fuzzing targets where
CROSS_COMPILE was always ''.
BRANCH=None
BUG=chromium:911310
TEST=USE="ubsan asan fuzzer" ./build_packages \
--board=amd64-generic --skip_chroot_upgrade chromeos-ec &&
(cd ../platform/ec && unset BOARD && make -j buildall)
Change-Id: I1c0b99f4ecef1e6ddec489568ccb13a8e8f5fb85
Signed-off-by: Allen Webb <allenwebb@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1363541
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'Makefile.toolchain')
-rw-r--r-- | Makefile.toolchain | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain index 7473ebc005..ddf0901afc 100644 --- a/Makefile.toolchain +++ b/Makefile.toolchain @@ -131,6 +131,7 @@ LDFLAGS=-nostdlib -g -Wl,-X -Wl,--gc-sections -Wl,--build-id=none \ $(LDFLAGS_EXTRA) $(CFLAGS_CPU) BUILD_LDFLAGS=$(LIBFTDI_LDLIBS) HOST_TEST_LDFLAGS=-Wl,-T core/host/host_exe.lds -lrt -pthread -rdynamic -lm\ + -fuse-ld=bfd \ $(if $(TEST_COVERAGE),-fprofile-arcs,) \ $(if $(TEST_ASAN), -fsanitize=address) \ $(if $(TEST_MSAN), -fsanitize=memory) \ |