define check-as-var
$(call check-tool-var,check_as,ASFLAG,$(1))
_v = CFLAG_-Wa$(1)
define check-as-var
$(call check-tool-var,check_as,ASFLAG,$(1))
_v = CFLAG_-Wa$(1)
endef
# Usage: check-ld-var,<flag>
# Check the linker to see if it supports <flag>. Export the
endef
# Usage: check-ld-var,<flag>
# Check the linker to see if it supports <flag>. Export the
# 0 .text xxxxxxxx 00000000 00000000 xxxxxxxx 2**2 <===!
CPU_CFLAGS-y += $(CFLAG_-ffunction-sections) $(CFLAG_-fdata-sections)
CPU_LDFLAGS-y += $(CFLAG_-Wl--sort-common)
# 0 .text xxxxxxxx 00000000 00000000 xxxxxxxx 2**2 <===!
CPU_CFLAGS-y += $(CFLAG_-ffunction-sections) $(CFLAG_-fdata-sections)
CPU_LDFLAGS-y += $(CFLAG_-Wl--sort-common)
-$(eval $(call check-ld-var,--sort-section%alignment))
- CPU_LDFLAGS-y += $(CFLAG_-Wl--sort-section%alignment)
+$(eval $(call check-ld-var,--sort-section=alignment))
+ CPU_LDFLAGS-y += $(CFLAG_-Wl--sort-section=alignment)