Commit b37b578
committed
py/persistentcode: Remove remaining native qstr linking support.
Support for architecture-specific qstr linking was removed in
d4d53e9, where native code was changed to
access qstr values via qstr_table. The only remaining use for the special
qstr link table in persistentcode.c is to support native module written in
C, linked via mpy_ld.py. But native modules can also use the standard
module-level qstr_table (and obj_table) which was introduced in the .mpy
file reworking in f2040bf.
This commit removes the remaining native qstr liking support in
persistentcode.c's load_raw_code function, and adds two new relocation
options for constants.qstr_table and constants.obj_table. mpy_ld.py is
updated to use these relocations options instead of the native qstr link
table.
Signed-off-by: Damien George <damien@micropython.org>1 parent 2111ca0 commit b37b578
File tree
5 files changed
+56
-96
lines changed- py
- tests/micropython
- tools
5 files changed
+56
-96
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
118 | 125 | | |
119 | | - | |
| 126 | + | |
120 | 127 | | |
121 | 128 | | |
122 | 129 | | |
| |||
205 | 212 | | |
206 | 213 | | |
207 | 214 | | |
208 | | - | |
| 215 | + | |
209 | 216 | | |
210 | 217 | | |
211 | 218 | | |
| |||
239 | 246 | | |
240 | 247 | | |
241 | 248 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | 249 | | |
261 | 250 | | |
262 | 251 | | |
| |||
315 | 304 | | |
316 | 305 | | |
317 | 306 | | |
318 | | - | |
| 307 | + | |
319 | 308 | | |
320 | 309 | | |
321 | 310 | | |
| |||
349 | 338 | | |
350 | 339 | | |
351 | 340 | | |
352 | | - | |
| 341 | + | |
353 | 342 | | |
354 | 343 | | |
355 | 344 | | |
| |||
429 | 418 | | |
430 | 419 | | |
431 | 420 | | |
432 | | - | |
| 421 | + | |
433 | 422 | | |
434 | 423 | | |
435 | 424 | | |
| |||
567 | 556 | | |
568 | 557 | | |
569 | 558 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | 559 | | |
576 | 560 | | |
577 | 561 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
| |||
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
105 | | - | |
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
976 | 976 | | |
977 | 977 | | |
978 | 978 | | |
979 | | - | |
980 | 979 | | |
981 | 980 | | |
982 | 981 | | |
| |||
989 | 988 | | |
990 | 989 | | |
991 | 990 | | |
992 | | - | |
993 | 991 | | |
994 | 992 | | |
995 | 993 | | |
| |||
1196 | 1194 | | |
1197 | 1195 | | |
1198 | 1196 | | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | 1197 | | |
1209 | 1198 | | |
1210 | 1199 | | |
| |||
1242 | 1231 | | |
1243 | 1232 | | |
1244 | 1233 | | |
1245 | | - | |
1246 | 1234 | | |
1247 | 1235 | | |
1248 | 1236 | | |
| |||
0 commit comments