From 44ae5cc14a1007bf97296648c3c5e7541e41a6d9 Mon Sep 17 00:00:00 2001 From: Stuart Ianna Date: Tue, 27 Jun 2023 10:39:53 +1000 Subject: [PATCH] import/mk: Update ELF flags to represent build configuration type. Allows board configuration to select the output ELF format for application built using the `make import` target. --- import/Make.defs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/import/Make.defs b/import/Make.defs index b8377f79a..b86a39640 100644 --- a/import/Make.defs +++ b/import/Make.defs @@ -90,5 +90,8 @@ endif # ELF module definitions -LDELFFLAGS += -r -e _start -Bstatic +ifeq ($(CONFIG_BINFMT_ELF_RELOCATABLE),y) + LDELFFLAGS += -r +endif +LDELFFLAGS += -e _start -Bstatic LDELFFLAGS += $(addprefix -T,$(call CONVERT_PATH,$(TOPDIR)/scripts/gnu-elf.ld))