This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils 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]

Re: libelf gelf_newehdr and gelf_newphdr return types


On Sat, Dec 03, 2016 at 02:05:41PM -0700, Ali Bahrami wrote:
> I also googled for these APIs, and found very little of note,
> other than manpages.

You can search the source in Debian here:
https://codesearch.debian.net/search?q=gelf_newehdr
https://codesearch.debian.net/search?q=gelf_newphdr

The only things really are:
- dwz casts it to a char *.
- prelink has it's own implementation that uses unsigned long

All the rest seems to either compare it to NULL, or not even do
anything with the return value.


Kurt

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]