<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://leo.leung.xyz/wiki/index.php?action=history&amp;feed=atom&amp;title=Patchelf</id>
	<title>Patchelf - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://leo.leung.xyz/wiki/index.php?action=history&amp;feed=atom&amp;title=Patchelf"/>
	<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=Patchelf&amp;action=history"/>
	<updated>2026-10-16T06:40:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://leo.leung.xyz/wiki/index.php?title=Patchelf&amp;diff=6653&amp;oldid=prev</id>
		<title>Leo: Created page with &quot;Patchelf is a utility to modify an existing ELF binary. It can be used to change, add, or remove dynamic libraries.  == Example usage == If a library is missing a dependency, it would fail to run due to a missing symbol. What you can do is inject the missing dependency to the library so that when the code is executed, the dynamic loader is able to pull in the necessary library. For example: {{Highlight | code = # ldd /usr/lib/x86_64-linux-gnu/liblistSerialsj.so.1.4.0  	l...&quot;</title>
		<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=Patchelf&amp;diff=6653&amp;oldid=prev"/>
		<updated>2022-02-18T05:50:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Patchelf is a utility to modify an existing ELF binary. It can be used to change, add, or remove dynamic libraries.  == Example usage == If a library is missing a dependency, it would fail to run due to a missing symbol. What you can do is inject the missing dependency to the library so that when the code is executed, the dynamic loader is able to pull in the necessary library. For example: {{Highlight | code = # ldd /usr/lib/x86_64-linux-gnu/liblistSerialsj.so.1.4.0  	l...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Patchelf is a utility to modify an existing ELF binary. It can be used to change, add, or remove dynamic libraries.&lt;br /&gt;
&lt;br /&gt;
== Example usage ==&lt;br /&gt;
If a library is missing a dependency, it would fail to run due to a missing symbol. What you can do is inject the missing dependency to the library so that when the code is executed, the dynamic loader is able to pull in the necessary library. For example:&lt;br /&gt;
{{Highlight&lt;br /&gt;
| code = # ldd /usr/lib/x86_64-linux-gnu/liblistSerialsj.so.1.4.0 &lt;br /&gt;
	linux-vdso.so.1 (0x00007ffcb89cb000)&lt;br /&gt;
	libc.so.6 =&amp;gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5c17a4a000)&lt;br /&gt;
	/lib64/ld-linux-x86-64.so.2 (0x00007f5c17e88000)&lt;br /&gt;
| lang = terminal&lt;br /&gt;
}}&lt;br /&gt;
We can then inject the missing library in with &amp;lt;code&amp;gt;patchelf&amp;lt;/code&amp;gt;:&lt;br /&gt;
{{Highlight&lt;br /&gt;
| code = # patchelf --add-needed /usr/lib/x86_64-linux-gnu/libserialport.so.0 /usr/lib/x86_64-linux-gnu/liblistSerialsj.so.1.4.0&lt;br /&gt;
&lt;br /&gt;
# ldd /usr/lib/x86_64-linux-gnu/liblistSerialsj.so.1.4.0 &lt;br /&gt;
	linux-vdso.so.1 (0x00007ffc4ec8c000)&lt;br /&gt;
	/usr/lib/x86_64-linux-gnu/libserialport.so.0 (0x00007fccbe15c000)&lt;br /&gt;
	libc.so.6 =&amp;gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007fccbdf23000)&lt;br /&gt;
	/lib64/ld-linux-x86-64.so.2 (0x00007fccbe374000)&lt;br /&gt;
| lang = terminal&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Leo</name></author>
	</entry>
</feed>