Commit 45f1f37
committed
arch/posix: Workaround race condition in glibc
Explicitly link with libgcc_s to work around a race condition
in glibc when dynamically loading libgcc_s in multiple threads.
The race condition was observed when running native_sim with
CONFIG_REBOOT=y and CONFIG_NATIVE_SIM_REBOOT=y and rebooting quickly
from main().
Signed-off-by: Tim Pambor <[email protected]>1 parent 4a69c1b commit 45f1f37
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
| |||
0 commit comments