toolchain: gcc: fix extra space when using SECTION_VAR
The generic version of SECTION_VAR() is adding an extra space during expansion before second argument (e.g. SECTION_VAR(section, variable) => ".section. variable" instead of ".section.variable") which would result in build error. So remove the "##" in macro to fix this, and now it will also behave the same as SECTION_FUNC(). Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
8297eafc60
commit
e6dc91466c
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ do { \
|
|||
section_subsec_func sect, subsec, sym
|
||||
#else /* !CONFIG_ARC */
|
||||
|
||||
#define SECTION_VAR(sect, sym) .section .sect.##sym; sym :
|
||||
#define SECTION_VAR(sect, sym) .section .sect.sym; sym:
|
||||
#define SECTION_FUNC(sect, sym) \
|
||||
.section .sect.sym, "ax"; \
|
||||
FUNC_CODE() \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue