<feed xmlns='http://www.w3.org/2005/Atom'>
<title>build-id, branch master</title>
<subtitle>Example code for reading an ELF binary's .note.gnu.build-id section, from the program itself</subtitle>
<id>http://git.mattst88.com/build-id/atom/?&amp;h=master</id>
<link rel='self' href='http://git.mattst88.com/build-id/atom/?&amp;h=master'/>
<link rel='alternate' type='text/html' href='http://git.mattst88.com/build-id/'/>
<updated>2022-04-03T23:23:16Z</updated>
<entry>
<title>Handle case of NULL dlpi_name</title>
<updated>2022-04-03T23:23:16Z</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2022-04-03T23:23:16Z</published>
<link rel='alternate' type='text/html' href='http://git.mattst88.com/build-id/commit/?id=3453c3fc3516996fc9a96469249ee7a223e5e32b'/>
<id>urn:sha1:3453c3fc3516996fc9a96469249ee7a223e5e32b</id>
<content type='text'>
Apparently this can happen on some versions of Android. Fixed in Mesa
with commit 70d25cae8b9 ("util/build-id: check dlpi_name before strstr
call").

Closes: https://github.com/mattst88/build-id/issues/5
</content>
</entry>
<entry>
<title>Remove usage of bash '&amp;&gt;' redirection</title>
<updated>2020-06-24T17:32:21Z</updated>
<author>
<name>Neil Roza</name>
<email>neil@rtr.ai</email>
</author>
<published>2020-06-23T13:35:18Z</published>
<link rel='alternate' type='text/html' href='http://git.mattst88.com/build-id/commit/?id=72ea519e3563df60fe81a9534e0b8b85bd63a37f'/>
<id>urn:sha1:72ea519e3563df60fe81a9534e0b8b85bd63a37f</id>
<content type='text'>
On systems where /bin/sh is dash, this would lead to empty *.expected
and *.results files and thus make check would always succeed.

Closes: #1
</content>
</entry>
<entry>
<title>README.md: Wordsmithing, formatting improvements</title>
<updated>2020-03-28T18:57:42Z</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2020-03-28T18:57:42Z</published>
<link rel='alternate' type='text/html' href='http://git.mattst88.com/build-id/commit/?id=62fddddbb35610e8d5f63fa1c832495fef4c540c'/>
<id>urn:sha1:62fddddbb35610e8d5f63fa1c832495fef4c540c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add README.MD and LICENSE</title>
<updated>2020-03-26T02:12:06Z</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2020-03-26T00:53:11Z</published>
<link rel='alternate' type='text/html' href='http://git.mattst88.com/build-id/commit/?id=25620d3d06d549cc2747cd7f557c5c3265e18c7b'/>
<id>urn:sha1:25620d3d06d549cc2747cd7f557c5c3265e18c7b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Always build with -fPIC</title>
<updated>2020-03-25T06:21:25Z</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2020-03-25T06:21:25Z</published>
<link rel='alternate' type='text/html' href='http://git.mattst88.com/build-id/commit/?id=d4c6267e4f8b28df6c98e1c6c5cb90021ce3665d'/>
<id>urn:sha1:d4c6267e4f8b28df6c98e1c6c5cb90021ce3665d</id>
<content type='text'>
The dladdr(3) explains that dladdr often doesn't do what you expect
because the function pointer will point to the PLT entry in the original
object and not the actual function itself.
</content>
</entry>
<entry>
<title>Test that by_symbol returns the same nhdr as by_name</title>
<updated>2019-04-25T17:52:20Z</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2019-04-25T17:38:53Z</published>
<link rel='alternate' type='text/html' href='http://git.mattst88.com/build-id/commit/?id=5380624471e4ac22edd397cd91289844650ef5e5'/>
<id>urn:sha1:5380624471e4ac22edd397cd91289844650ef5e5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix address comparison for binaries with LOAD vaddr &gt; 0</title>
<updated>2019-04-25T17:52:20Z</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2019-04-25T17:37:18Z</published>
<link rel='alternate' type='text/html' href='http://git.mattst88.com/build-id/commit/?id=df84371bae98aa0724aa7926822da44cbcd3fbca'/>
<id>urn:sha1:df84371bae98aa0724aa7926822da44cbcd3fbca</id>
<content type='text'>
Cherry-picked from Mesa commit 02e2009b929a (util/build-id: Fix address
comparison for binaries with LOAD vaddr &gt; 0) by Stephan Gerhold.
</content>
</entry>
<entry>
<title>Add a program using dlopen</title>
<updated>2019-04-25T17:52:20Z</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2019-04-22T22:03:40Z</published>
<link rel='alternate' type='text/html' href='http://git.mattst88.com/build-id/commit/?id=8f13b4246acddd0cde1d34f81f4329dc22649d7d'/>
<id>urn:sha1:8f13b4246acddd0cde1d34f81f4329dc22649d7d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a check target to the Makefile</title>
<updated>2019-04-25T17:52:20Z</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2019-04-11T20:23:21Z</published>
<link rel='alternate' type='text/html' href='http://git.mattst88.com/build-id/commit/?id=7e5251db3421e221e3f72cfece21093afc5f0651'/>
<id>urn:sha1:7e5251db3421e221e3f72cfece21093afc5f0651</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add macros to build on OpenBSD</title>
<updated>2017-11-26T05:16:00Z</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2017-11-26T05:15:29Z</published>
<link rel='alternate' type='text/html' href='http://git.mattst88.com/build-id/commit/?id=5bd8646633b9ab6de3da2e2c6198ae15f59c6d6f'/>
<id>urn:sha1:5bd8646633b9ab6de3da2e2c6198ae15f59c6d6f</id>
<content type='text'>
From upstream Mesa commit a042465c218e ("util/build-id: define ElfW and
NT_GNU_BUILD_ID if needed")
</content>
</entry>
</feed>
