推荐两篇文章,讲Linux进程内存分布的。
1. 这篇比较简单,如果只是想大概了解下,可以只看这篇。
https://en.wikipedia.org/wiki/Data_segment
2. 这篇相对复杂些,但写的是真好,推荐认真看看。
https://manybutfinite.com/post/anatomy-of-a-program-in-memory/
完。