Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1# SPDX-License-Identifier: GPL-2.0
2
3quiet_cmd_chkbss = CHKBSS $<
4define cmd_chkbss
5 if ! $(OBJDUMP) -j .bss -w -h $< | awk 'END { if ($$3) exit 1 }'; then \
6 echo "error: $< .bss section is not empty" >&2; exit 1; \
7 fi; \
8 touch $@;
9endef
10
11$(obj)/built-in.a: $(patsubst %, $(obj)/%.chkbss, $(chkbss))
12
13%.o.chkbss: %.o
14 $(call cmd,chkbss)