Memory Segments

From “Hacking: The art of exploitation.”

在这里插入图片描述

  • the compiled code goes into the text segment,
  • while the variables reside in the remaining segments.
  • If static or global variables are initialized with data, they are stored in the data memory segment;
  • otherwise, these variables are put in the bss memory segment.

版权声明:本文为geniusle201原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。