Comment by ryanshrott
2 days ago
I ran into this with embedded Rust: put alloc in a .init_array function, but the global allocator also uses .init_array, and there's no ordering guarantee. Took me hours to figure out why I was getting garbage from the heap before main.
No comments yet
Contribute on Hacker News ↗