Use of __libc_init_array call
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-07 9:36 AM
Hello,
Into the startup assembly file there is a call to the __libc_init_array procedure, and i would like to know :
- What does it do ?
- If it is really essential ?
- What is the default implementation of the _init() procedure which is called by it ?
Thanks.
#startup #c #libc_init_array- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-07 4:06 PM
Typically C++ constructors, ie initialize globally defined classes.
If you have such things it would be critical to initialize them properly if you expect your code to function correctly.
You could presumably use the disassembly listing to see what the code does, and if it is working it's way through an initialization array.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-07 7:30 PM
So, if i only use C language i don't have to call this function ? Thanks
