Initial commit of source code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
26
src/declfunc.lds.S
Normal file
26
src/declfunc.lds.S
Normal file
@@ -0,0 +1,26 @@
|
||||
// Linker script that defines symbols around sections. The DECL_X()
|
||||
// macros need this linker script to place _start and _end symbols
|
||||
// around the list of declared items.
|
||||
|
||||
#define DECLWRAPPER(NAME) \
|
||||
.progmem.data. ## NAME : SUBALIGN(1) { \
|
||||
NAME ## _start = . ; \
|
||||
*( .progmem.data. ## NAME ##.pre* ) \
|
||||
*( .progmem.data. ## NAME ##* ) \
|
||||
*( .progmem.data. ## NAME ##.post* ) \
|
||||
NAME ## _end = . ; \
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
DECLWRAPPER(taskfuncs)
|
||||
DECLWRAPPER(initfuncs)
|
||||
DECLWRAPPER(shutdownfuncs)
|
||||
|
||||
.compile_time_request.static_strings 0 (INFO) : {
|
||||
*( .compile_time_request.static_strings )
|
||||
}
|
||||
.compile_time_request.parsers 0 (INFO) : {
|
||||
*( .compile_time_request.parsers )
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user