Where does the linux kernel put local variables

Rock Lee rocklee_104 at outlook.com
Mon Aug 3 22:28:15 EDT 2015


Hi, all:
	I print a local variable address in start_kernel(), and I realize this 
address is between __data_start and _edata. In my opinion,
local variables should be located in stack, why is this local variable 
located in data section? BTW, I use a arm11 board with linux-2.6.28.

Thanks
-- 
Rock Lee



More information about the Kernelnewbies mailing list