mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
Initial commit
This commit is contained in:
9
common/sections.h
Normal file
9
common/sections.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#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)
|
||||
Reference in New Issue
Block a user