How to find global static initializations

前端 未结 2 1583
梦谈多话
梦谈多话 2021-01-03 08:00

I just read this excellent article: http://neugierig.org/software/chromium/notes/2011/08/static-initializers.html and then I tried: https://gcc.gnu.org/onlinedocs/gccint/Ini

2条回答
  •  一个人的身影
    2021-01-03 08:25

    There are multiple things executed when loading an ELF object, not just .init_array. To get an overview, I suggest looking at the sources of libc's loader, especially _dl_init() and call_init().

提交回复
热议问题