AnsweredAssumed Answered

cat /sys/module/xxx/sections/.text = 0x00000000 for gdb

Question asked by jesse stone on Feb 2, 2016

When cat /sys/module/hellotest/sections/.text = 0x00000000

Try this way

 

gedit /root/project_board/free_imx/myandroid/kernel_imx/kernel/module.c

//in function module_sect_show

 

return sprintf(buf, "0x%pK\n", (void *)sattr->address);

//change to

return sprintf(buf, "0x%p\n", (void *)sattr->address);

Outcomes