This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Can anyone just tell me that why after reading the elf headers of the applications like gzip, bunzip2 on the x86 machines , the program entry point along with all other entries are zeros.
I am trying to access the header with this piece of code, Its working fine for most of the executables but for the few above mentioned application, its returning zero.
Elf32_Ehdr* self = (Elf32_Ehdr *)0x8048000; ptr=(int *)self->e_entry;
Cheers Nick
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |