You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <[email protected]>
0 commit comments