Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
linker-tool-mwdt.h File Reference

Metware toolchain linker defs. More...

Go to the source code of this file.

Macros

#define ASSERT(x, y)
 
#define SUBALIGN(x)   ALIGN(x)
 
#define LOG2CEIL(x)
 
#define GROUP_START(where)
 
#define GROUP_END(where)
 
#define GROUP_LINK_IN(where)   > where
 
#define GROUP_ROM_LINK_IN(vregion, lregion)   > lregion
 
#define GROUP_DATA_LINK_IN(vregion, lregion)   > vregion
 
#define GROUP_NOLOAD_LINK_IN(vregion, lregion)   > vregion
 
#define SECTION_PROLOGUE(name, options, align)   name options align :
 
#define SECTION_DATA_PROLOGUE(name, options, align)   name options align :
 
#define SORT_BY_NAME(x)   SORT(x)
 

Detailed Description

Metware toolchain linker defs.

This header file defines the necessary macros used by the linker script for use with the metware linker.

Macro Definition Documentation

◆ ASSERT

#define ASSERT (   x,
 
)

◆ GROUP_DATA_LINK_IN

#define GROUP_DATA_LINK_IN (   vregion,
  lregion 
)    > vregion

◆ GROUP_END

#define GROUP_END (   where)

◆ GROUP_LINK_IN

#define GROUP_LINK_IN (   where)    > where

◆ GROUP_NOLOAD_LINK_IN

#define GROUP_NOLOAD_LINK_IN (   vregion,
  lregion 
)    > vregion

Route memory for read-write sections that are NOT loaded; typically this is only used for 'BSS' and 'noinit'.

◆ GROUP_ROM_LINK_IN

#define GROUP_ROM_LINK_IN (   vregion,
  lregion 
)    > lregion

The GROUP_ROM_LINK_IN() macro is located at the end of the section description and tells the linker that this a read-only section that is physically placed at the 'lregion` argument.

◆ GROUP_START

#define GROUP_START (   where)

◆ LOG2CEIL

#define LOG2CEIL (   x)
Value:
((((x) <= 2048) ? 11 : (((x) <= 4096)?12:(((x) <= 8192) ? \
13 : (((x) <= 16384) ? 14 : (((x) <= 32768) ? 15:(((x) <= 65536) ? \
16 : (((x) <= 131072) ? 17 : (((x) <= 262144) ? 18:(((x) <= 524288) ? \
19 : (((x) <= 1048576) ? 20 : (((x) <= 2097152) ? \
21 : (((x) <= 4194304) ? 22 : (((x) <= 8388608) ? \
23 : (((x) <= 16777216) ? 24 : (((x) <= 33554432) ? \
25 : (((x) <= 67108864) ? 26 : (((x) <= 134217728) ? \
27 : (((x) <= 268435456) ? 28 : (((x) <= 536870912) ? \
29 : (((x) <= 1073741824) ? 30 : (((x) <= 2147483648) ? \
31 : 32))))))))))))))))))))))

◆ SECTION_DATA_PROLOGUE

#define SECTION_DATA_PROLOGUE (   name,
  options,
  align 
)    name options align :

◆ SECTION_PROLOGUE

#define SECTION_PROLOGUE (   name,
  options,
  align 
)    name options align :

◆ SORT_BY_NAME

#define SORT_BY_NAME (   x)    SORT(x)

◆ SUBALIGN

#define SUBALIGN (   x)    ALIGN(x)