Re: "elf_begin" returns NULL

2007-03-16 Thread Kris Kennaway
On Wed, Mar 14, 2007 at 11:37:02AM -0500, Robe wrote: > Hi, > > I'm trying to create an object file (.o) using the "libelf" library. > Below appear the full source code. > > Does any body know why the "elf_begin" statement return NULL? This kind of technical question should be discussed on [EMAI

"elf_begin" returns NULL

2007-03-15 Thread Robe
Hi, I'm trying to create an object file (.o) using the "libelf" library. Below appear the full source code. Does any body know why the "elf_begin" statement return NULL? #include < stdio.h> #include #include int main() { int FileDes; Elf *pElf = elf_begin(FileDes, ELF_C_WRITE, NULL)