Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disassembly of sections in a c program [closed]

I wrote a very basic Hello World program to know about sections. After using objdump I got all sections. I am using ubuntu 12.04.

in output I found it like that :

  1. Disassembly of section .init

  2. Disassembly of section .plt

  3. Disassembly of section .text

  4. __do_global_dtors_aux

  5. Disassembly of section .fini

I want to know what those sections are? what data they store? Specially .plt and .fini. About .init and .text I can guess, but what about others?

like image 923
someone Avatar asked Jul 04 '13 09:07

someone


1 Answers

You should google it : here is the first result. It's a good start to learn more about ELF format.

About .init and .fini, it's here.

Here is a list of the ELF sections with a brief description.

like image 98
nouney Avatar answered Sep 26 '22 20:09

nouney