Commit 93a4aba
committed
llext: Keep RODATA sections without relocations in flash.
Keep RODATA sections that don't have any relocations in flash.
Changes:
- Add LLEXT_MEM_RODATA_NO_RELOC memory region type for relocation-free
read-only data that stays in flash
- Add pre-pass in llext_map_sections() that scans all REL/RELA sections
and marks their target sections in a temporary array
- Modify RODATA section classification to check relocation marks:
sections with relocations go to LLEXT_MEM_RODATA (RAM), sections
without go to LLEXT_MEM_RODATA_NO_RELOC (flash)
since sections are interleaved
Signed-off-by: Ibrahim Abdalkader <[email protected]>1 parent 2c1c2c7 commit 93a4aba
2 files changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
235 | 254 | | |
236 | 255 | | |
237 | 256 | | |
| |||
256 | 275 | | |
257 | 276 | | |
258 | 277 | | |
259 | | - | |
| 278 | + | |
| 279 | + | |
260 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
261 | 284 | | |
262 | 285 | | |
263 | 286 | | |
| |||
0 commit comments