Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
147 user(s) are online (132 user(s) are browsing Forums)

Members: 1
Guests: 146

Raziel, more...

Support us!

Headlines

 
  Register To Post  

elf.library documentation
Just can't stay away
Just can't stay away


See User information
http://dl.dropbox.com/u/5482530/a.out
http://tinyurl.com/y4g8ypw

You need both these files to run the example.
If you compile and run this code, you will get a grim reaper. The question is why.

Obviously it is IElf->RelocateSection() that is the problem. In the
autodocs it says:

"Note: If the section was absolute, or no reloc could be found for the
section, nothing happens and this function will return TRUE. The reason
for this is that really the intention was to have a usable, relocated section. It's not my fault if there was nothing to do..."

What I read from this is, that you can call RelocateSection() on any section without problems. This doesn't seem to be the case judging from the above code sample.


I'm trying to work on GDB, and this example has been distilled from Thomas Friedens sources in the adtools project. There seems to be a difference in the meaning of the Elf32_Shdr->sh_info member. In thomas' code it seems, that he expects it to contain the section number, but this makes GDB crash. The documentation on elf.library doesn't explain anything about the sctructures in <libraries/elf.h>, only the methods are described.

Go to top
Re: elf.library documentation
Amigans Defender
Amigans Defender


See User information
@alfkil
You should really email Thomas directly instead of hoping he'll see your posting in a web forum. At least, that is what I would do.

ExecSG Team Lead
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project