diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-06-10 21:11:04 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-06-14 14:00:57 -0400 |
commit | da305e6b61efab8c16d324723859b318fb1979a9 (patch) | |
tree | 9ad776c48dc96fd85b22be3327bbba662b778b66 /src/sched.h | |
parent | 343de9c454e0f68a1ff5a12d745575b2e5150897 (diff) | |
download | kutter-da305e6b61efab8c16d324723859b318fb1979a9.tar.gz kutter-da305e6b61efab8c16d324723859b318fb1979a9.tar.xz kutter-da305e6b61efab8c16d324723859b318fb1979a9.zip |
build: Update declfuncs.lds.S to only use progmem sections on AVR
On non-avr platforms the declfunc stuff still needs to be in the
binary in a rodata section.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/sched.h')
-rw-r--r-- | src/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sched.h b/src/sched.h index bdef5e4c..9685317f 100644 --- a/src/sched.h +++ b/src/sched.h @@ -42,7 +42,7 @@ struct callback_handler { }; #define _DECL_CALLBACK(NAME, FUNC) \ const struct callback_handler _DECL_ ## NAME ## _ ## FUNC __visible \ - __section(".progmem.data." __stringify(NAME) ) = { .func = FUNC } + __section(".rodata." __stringify(NAME) ) = { .func = FUNC } #define foreachdecl(ITER, NAME) \ extern typeof(*ITER) NAME ## _start[], NAME ## _end[]; \ |