Re: Executable entry point
Re: Executable entry point
- Subject: Re: Executable entry point
- From: Filipe Cabecinhas <email@hidden>
- Date: Tue, 20 Mar 2007 11:13:31 +0000
On 20 Mar, 2007, at 10:07, Quinn wrote:
Can you (Filipe) post the output from otool -l?
Here it is:
godel:~/dev/compiladores/tests filcab$ otool -l hello
hello:
Load command 0
cmd LC_SEGMENT
cmdsize 56
segname __PAGEZERO
vmaddr 0x00000000
vmsize 0x00001000
fileoff 0
filesize 0
maxprot 0x00000000
initprot 0x00000000
nsects 0
flags 0x4
Load command 1
cmd LC_SEGMENT
cmdsize 328
segname __TEXT
vmaddr 0x00001000
vmsize 0x00002000
fileoff 0
filesize 8192
maxprot 0x00000007
initprot 0x00000005
nsects 4
flags 0x0
Section
sectname __text
segname __TEXT
addr 0x000022f0
size 0x00000c87
offset 4848
align 2^0 (1)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
Section
sectname __const
segname __TEXT
addr 0x00002f80
size 0x00000050
offset 8064
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __literal8
segname __TEXT
addr 0x00002fd0
size 0x00000028
offset 8144
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000004
reserved1 0
reserved2 0
Section
sectname __textcoal_nt
segname __TEXT
addr 0x00002ff8
size 0x00000004
offset 8184
align 2^0 (1)
reloff 0
nreloc 0
flags 0x8000040b
reserved1 0
reserved2 0
Load command 2
cmd LC_SEGMENT
cmdsize 260
segname __DATA
vmaddr 0x00003000
vmsize 0x00001000
fileoff 8192
filesize 4096
maxprot 0x00000003
initprot 0x00000003
nsects 3
flags 0x0
Section
sectname __const
segname __DATA
addr 0x00003000
size 0x0000000e
offset 8192
align 2^0 (1)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __data
segname __DATA
addr 0x0000300e
size 0x00000009
offset 8206
align 2^0 (1)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __bss
segname __DATA
addr 0x00003020
size 0x00000061
offset 0
align 2^5 (32)
reloff 0
nreloc 0
flags 0x00000001
reserved1 0
reserved2 0
Load command 3
cmd LC_SEGMENT
cmdsize 124
segname __IMPORT
vmaddr 0x00004000
vmsize 0x00001000
fileoff 12288
filesize 4096
maxprot 0x00000007
initprot 0x00000007
nsects 1
flags 0x0
Section
sectname __jump_table
segname __IMPORT
addr 0x00004000
size 0x0000000a
offset 12288
align 2^0 (1)
reloff 0
nreloc 0
flags 0x84000408
reserved1 0 (index into indirect symbol table)
reserved2 5 (size of stubs)
Load command 4
cmd LC_SEGMENT
cmdsize 56
segname __LINKEDIT
vmaddr 0x00005000
vmsize 0x00002000
fileoff 16384
filesize 6580
maxprot 0x00000003
initprot 0x00000001
nsects 0
flags 0x4
Load command 5
cmd LC_LOAD_DYLIB
cmdsize 52
name /usr/lib/libSystem.B.dylib (offset 24)
time stamp 1174303458 Mon Mar 19 11:24:18 2007
current version 88.3.6
compatibility version 1.0.0
Load command 6
cmd LC_SYMTAB
cmdsize 24
symoff 16392
nsyms 400
stroff 21192
strsize 1772
Load command 7
cmd LC_DYSYMTAB
cmdsize 80
ilocalsym 0
nlocalsym 372
iextdefsym 372
nextdefsym 25
iundefsym 397
nundefsym 3
tocoff 0
ntoc 0
modtaboff 0
nmodtab 0
extrefsymoff 0
nextrefsyms 0
indirectsymoff 16384
nindirectsyms 2
extreloff 0
nextrel 0
locreloff 0
nlocrel 0
Load command 8
cmd LC_UNIXTHREAD
cmdsize 80
flavor i386_THREAD_STATE
count i386_THREAD_STATE_COUNT
eax 0x00000000 ebx 0x00000000 ecx 0x00000000 edx
0x00000000
edi 0x00000000 esi 0x00000000 ebp 0x00000000 esp
0x00000000
ss 0x0000001f eflags 0x00000000 eip 0x00002492 cs
0x00000017
ds 0x0000001f es 0x0000001f fs 0x00000000 gs
0x00000000
godel:~/dev/compiladores/tests filcab$
Thanks for the help
Filipe Cabecinhas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden