mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-01-11 20:29:23 +01:00
10 lines
377 B
C
10 lines
377 B
C
#pragma once
|
|
|
|
#define DEFINE_SECTION_SYMBOLS(sectionName) \
|
|
extern u8 __start_##sectionName[]; \
|
|
extern u8 __stop_##sectionName[]
|
|
|
|
#define SECTION_START(sectionName) ((void*)__start_##sectionName)
|
|
#define SECTION_END(sectionName) ((void*)__stop_##sectionName)
|
|
#define SECTION_SIZE(sectionName) ((u32)__stop_##sectionName - (u32)__start_##sectionName)
|