flat assembler
Message board for the users of flat assembler.

Index > Linux > Requesting some ELF help...

Author
Thread Post new topic Reply to topic
pk



Joined: 14 May 2011
Posts: 1
pk
I would like some help understanding the ELF structure. With this particular one I want to know how the program label 'foo' can be related to a position within the body of code to produce a more meaningful disassembly.

In case anyone is wondering, this is not a x86 program - it's a ppc program with three instructions and a data word '0xdeadbeef'. It has one program label and a symbol required by the OS.

0000 7f454c46 01020100 00000000 00000000 .ELF............
0010 00010014 00000001 00000000 00000000 ................
0020 00000070 00000000 00340000 00000028 ...p.....4.....(
0030 00060003 48000008 60000000 4e800020 ....H...`...N..
0040 deadbeef 002e7379 6d746162 002e7374 Þ.­¾ï..symtab..st
0050 72746162 002e7368 73747274 6162002e rtab..shstrtab..
0060 74657874 002e726f 64617461 00000000 text..rodata....
0070 00000000 00000000 00000000 00000000 ................
0080 00000000 00000000 00000000 00000000 ................
0090 00000000 00000000 0000001b 00000001 ................
00a0 00000006 00000000 00000034 0000000c ...........4....
00b0 00000000 00000000 00000004 00000000 ................
00c0 00000021 00000001 00000002 00000000 ...!............
00d0 00000040 00000004 00000000 00000000 ...@............
00e0 00000004 00000000 00000011 00000003 ................
00f0 00000000 00000000 00000044 00000029 ...........D...)
0100 00000000 00000000 00000001 00000000 ................
0110 00000001 00000002 00000000 00000000 ................
0120 00000160 00000050 00000005 00000004 ...`...P........
0130 00000004 00000010 00000009 00000003 ................
0140 00000000 00000000 000001b0 0000000e ...........°....
0150 00000000 00000000 00000001 00000000 ................
0160 00000000 00000000 00000000 00000000 ................
0170 00000000 00000000 00000000 03000001 ................
0180 00000000 00000000 00000000 03000002 ................
0190 00000001 00000008 00000000 00000001 ................
01a0 00000005 00000000 00000004 11000002 ................
01b0 00666f6f 005f5f61 626f785f 5f000000 .foo.__abox__...
Post 14 May 2011, 23:54
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.