From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5812236518808308215==" MIME-Version: 1.0 From: Kurt Roeckx To: elfutils-devel@lists.fedorahosted.org Subject: Re: libelf gelf_newehdr and gelf_newphdr return types Date: Sat, 03 Dec 2016 23:02:02 +0100 Message-ID: <20161203220202.wr6icesaibr3yo34@roeckx.be> In-Reply-To: 7d9bcb18-297c-de7a-8de7-d0cbd682c05a@Oracle.COM --===============5812236518808308215== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=3Dgelf_newehdr https://codesearch.debian.net/search?q=3Dgelf_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 --===============5812236518808308215==--