diff --git a/Makefile b/Makefile index fa63773b..0ccd04af 100644 --- a/Makefile +++ b/Makefile @@ -165,7 +165,8 @@ CFLAGS += -DCHROMEOS_ENVIRONMENT ${COMMON_FLAGS} endif # Needs -Wl because LD is actually set to CC by default. -LDFLAGS ?= -Wl,--gc-sections +# Build with bfd linker, https://crbub.com/999217. +LDFLAGS ?= -Wl,--gc-sections -fuse-ld=bfd ifneq (${DEBUG},) CFLAGS += -DVBOOT_DEBUG