title: Find text section of elf in C
body: <p>What is the right way to get text section of Elf file and display it's content? I've tried to do it myself but it's showing just 250 bites of data, but when I try with readelf command it shows me much more. I think I just made wrong offset to get the section. What is the right approach?</p>
  <p>Update:
  I supplemented the code. Now, it gives me segmentation fault when I want to print symbol names.</p>