From b5da7d33b49273679999d781958ce69fb2ce89c9 Mon Sep 17 00:00:00 2001 From: Gerson Fernando Budke Date: Wed, 13 Oct 2021 19:29:58 -0300 Subject: [PATCH] [feat][common] Allow customize ld sections Signed-off-by: Gerson Fernando Budke --- common/misc/compiler/common.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/misc/compiler/common.h b/common/misc/compiler/common.h index 1a12dd4e..8032bf89 100644 --- a/common/misc/compiler/common.h +++ b/common/misc/compiler/common.h @@ -40,6 +40,7 @@ } /* Std driver attribute macro*/ + #ifndef BFLB_USE_CUSTOM_LD_SECTIONS //#define ATTR_UNI_SYMBOL #define ATTR_STRINGIFY(x) #x #define ATTR_TOSTRING(x) ATTR_STRINGIFY(x) @@ -56,5 +57,7 @@ #define ATTR_EALIGN(x) __attribute__((aligned(x))) #define ATTR_FALLTHROUGH() __attribute__((fallthrough)) #define ATTR_USED __attribute__((__used__)) - -#endif \ No newline at end of file +#else +#include "bl_ld_sections.h" +#endif /* BFLB_USE_CUSTOM_LD_SECTIONS */ +#endif