Which section of the modern compiled code controls the exit of a c program?

33 Views Asked by At

So, In the binary files of C program compiled using old gcc versions like 3.3.6 there is a section like .dtors but there is nothing like that in the binary files of C program compiled using new gcc versions like 11.3.0

I want to know what will be the last section to be executed in any gcc compiled code or the section which controls the exit of a program. I also what to know what is the purpose of .fini_array section.

0

There are 0 best solutions below