forked from zephyrproject-rtos/arduino-core-zephyr
-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit 66af40f
committed
variants/_ldscripts: Fix static thread data alignment.
The _static_thread_data struct contains int64_t members that require 8-byte
alignment. When placed in a 4-byte aligned section, it causes the linker to
insert padding, which in turn causes __static_thread_data_list_start to point
to the padding not to the first iterable.
GNU ld automatically aligns output sections based on the strictest alignment
requirement of input sections, so moving __static_thread_data_list to its own
section fixes the problem.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>1 parent cbf7e44 commit 66af40f
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | + | ||
37 | 38 | | |
39 | + | ||
38 | 40 | | |
39 | - | ||
41 | + | ||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
90 | - | ||
92 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | + | ||
26 | 27 | | |
28 | + | ||
27 | 29 | | |
28 | - | ||
30 | + | ||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
0 commit comments