I wrote some simple code by C/C++ ,compiling by Dev C++(MinGW) in PE format on win10 .
I used the tool "Stud PE" to review the PE file structure of the compiled exe as follows:
As you can see,in addition to the normal file sections like .text ,.data , .bss ... , there are some other sections with the name like /4,/19,/31 ... .
How can I know what's the purpose of these sections ? for debugging?? (but why so many sections with strange name ?)
Is there any documentation or material to explain the purpose of theses sections,and how could I turn off generating these sections in Dev C++ ?
Thank you ~
In PE executables, section names of the form /[n] reference offset [n] into the COFF string table for their names.
You can use gnu binutils' objdump -h to see the real names of these sections.
Generally the long named sections are ones added by gcc or clang for DWARF debug info, along with .eh_frame, which stores unwind information for each function.
There is no code in any of these sections, but their formats are documented (although DWARF is nontrivial to read).
Your output is likely to be something like this: