@@ -103,6 +103,7 @@
#define RODATA_MAIN .rodata .rodata.[0-9a-zA-Z_]* .rodata..L*
#define BSS_MAIN .bss .bss.[0-9a-zA-Z_]* .bss..compoundliteral*
#define SBSS_MAIN .sbss .sbss.[0-9a-zA-Z_]*
+#define BSEC_MAIN(sec) sec sec##.[0-9a-zA-Z_]*
#else
#define TEXT_MAIN .text
#define DATA_MAIN .data
@@ -110,6 +111,7 @@
#define RODATA_MAIN .rodata
#define BSS_MAIN .bss
#define SBSS_MAIN .sbss
+#define BSEC_MAIN(sec) sec
#endif
/*
@@ -201,12 +203,12 @@
#define BOUNDED_SECTION_PRE_LABEL(_sec_, _label_, _BEGIN_, _END_) \
_BEGIN_##_label_ = .; \
- KEEP(*(_sec_)) \
+ KEEP(*(BSEC_MAIN(_sec_))) \
_END_##_label_ = .;
#define BOUNDED_SECTION_POST_LABEL(_sec_, _label_, _BEGIN_, _END_) \
_label_##_BEGIN_ = .; \
- KEEP(*(_sec_)) \
+ KEEP(*(BSEC_MAIN(_sec_))) \
_label_##_END_ = .;
#define BOUNDED_SECTION_BY(_sec_, _label_) \