<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to LibElfIncompatibilityRedHatElfUtils</title><link>https://sourceforge.net/p/elftoolchain/wiki/LibElfIncompatibilityRedHatElfUtils/</link><description>Recent changes to LibElfIncompatibilityRedHatElfUtils</description><atom:link href="https://sourceforge.net/p/elftoolchain/wiki/LibElfIncompatibilityRedHatElfUtils/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 28 Dec 2013 17:33:35 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/elftoolchain/wiki/LibElfIncompatibilityRedHatElfUtils/feed" rel="self" type="application/rss+xml"/><item><title>LibElfIncompatibilityRedHatElfUtils modified by Joseph Koshy</title><link>https://sourceforge.net/p/elftoolchain/wiki/LibElfIncompatibilityRedHatElfUtils/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -16,7 +16,7 @@

 ### Timeline of the proposed fixes/workarounds

-  * (2009/Jun/03) Ali.Bahrami@â€Ś suggests deprecating `elf_getshnum()`, `elf_getshstrndx()` and `elf_getphnum()` in favour of three new APIs `elf_getshdrnum()`, `elf_getshdrstrndx()`, and `elf_getphdrnum()` respectively. The new functions will return -1 in case of error, and zero otherwise. 
+  * (2009/Jun/03)  suggests deprecating `elf_getshnum()`, `elf_getshstrndx()` and `elf_getphnum()` in favour of three new APIs `elf_getshdrnum()`, `elf_getshdrstrndx()`, and `elf_getphdrnum()` respectively. The new functions will return -1 in case of error, and zero otherwise. 
   * (2009/Jun/15) See also: Solaris bug [6851224](http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6851224). 
   * (2009/Jun/18) Per discussion on email with Ali Bahrami and Michael Riepe, Opensolaris's Nevada snv_118 build, RH Elfutils 0.142, and GNU libelf 0.8.12 will have the new APIs. 
-  * (2009/Aug/04) The three proposed APIs were added to [libelf/](/apps/trac/elftoolchain/browser/trunk/libelf) in changeset [[466]](/apps/trac/elftoolchain/changeset/466). These APIs will be present in the [v0.5](Releases-Release0.5.1) and subsequent releases. 
+  * (2009/Aug/04) The three proposed APIs were added to &lt;a href="http://sourceforge.net/p/elftoolchain/code/HEAD/tree/trunk/libelf"&gt;libelf&lt;/a&gt; in changeset [r466]. These APIs will be present in the [v0.5](Releases-Release0.5.1) and subsequent releases. 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joseph Koshy</dc:creator><pubDate>Sat, 28 Dec 2013 17:33:35 -0000</pubDate><guid>https://sourceforge.net9ab359cfdb48185db4aaacb799550e2d9689459c</guid></item><item><title>LibElfIncompatibilityRedHatElfUtils modified by Joseph Koshy</title><link>https://sourceforge.net/p/elftoolchain/wiki/LibElfIncompatibilityRedHatElfUtils/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="incompatibility-with-red-hat-elfutils"&gt;Incompatibility with Red Hat Elfutils&lt;/h1&gt;
&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#incompatibility-with-red-hat-elfutils"&gt;Incompatibility with Red Hat Elfutils&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#146-resolved-elf_getshnum-elf_getshstrndx-return-value"&gt;1. (Resolved) elf_getshnum(), elf_getshstrndx() return value&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#description"&gt;Description&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#resolution"&gt;Resolution&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#timeline-of-the-proposed-fixesworkarounds"&gt;Timeline of the proposed fixes/workarounds&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h2 id="146-resolved-elf_getshnum-elf_getshstrndx-return-value"&gt;1. (Resolved) elf_getshnum(), elf_getshstrndx() return value&lt;/h2&gt;
&lt;h3 id="description"&gt;Description&lt;/h3&gt;
&lt;p&gt;In our implementation of the ELF(3) API, functions &lt;code&gt;elf_getshnum()&lt;/code&gt; and &lt;code&gt;elf_getshstrndx()&lt;/code&gt; return zero in case of an error and non-zero in case of success. This behaviour is consistent with that of the ELF(3) implementations from the &lt;a class="" href="http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/sgs/libelf/" rel="nofollow"&gt;OpenSolaris&lt;/a&gt; and &lt;a class="" href="http://www.mr511.de/software/english.html" rel="nofollow"&gt;GNU&lt;/a&gt; projects. &lt;/p&gt;
&lt;p&gt;In contrast, the similarly named functions in Red Hat &lt;strong&gt;&lt;a class="" href="https://fedorahosted.org/elfutils" rel="nofollow"&gt;elfutils&lt;/a&gt;&lt;/strong&gt; return -1 in the case of an error and zero otherwise. &lt;/p&gt;
&lt;h3 id="resolution"&gt;Resolution&lt;/h3&gt;
&lt;p&gt;New APIs &lt;code&gt;elf_getshdrnum()&lt;/code&gt;, &lt;code&gt;elf_getshdrstrndx()&lt;/code&gt;, and &lt;code&gt;elf_getphdrnum()&lt;/code&gt; have been added to &lt;code&gt;libelf&lt;/code&gt;. &lt;/p&gt;
&lt;h3 id="timeline-of-the-proposed-fixesworkarounds"&gt;Timeline of the proposed fixes/workarounds&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;(2009/Jun/03) Ali.Bahrami@â€Ś suggests deprecating &lt;code&gt;elf_getshnum()&lt;/code&gt;, &lt;code&gt;elf_getshstrndx()&lt;/code&gt; and &lt;code&gt;elf_getphnum()&lt;/code&gt; in favour of three new APIs &lt;code&gt;elf_getshdrnum()&lt;/code&gt;, &lt;code&gt;elf_getshdrstrndx()&lt;/code&gt;, and &lt;code&gt;elf_getphdrnum()&lt;/code&gt; respectively. The new functions will return -1 in case of error, and zero otherwise. &lt;/li&gt;
&lt;li&gt;(2009/Jun/15) See also: Solaris bug &lt;a class="" href="http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6851224" rel="nofollow"&gt;6851224&lt;/a&gt;. &lt;/li&gt;
&lt;li&gt;(2009/Jun/18) Per discussion on email with Ali Bahrami and Michael Riepe, Opensolaris's Nevada snv_118 build, RH Elfutils 0.142, and GNU libelf 0.8.12 will have the new APIs. &lt;/li&gt;
&lt;li&gt;(2009/Aug/04) The three proposed APIs were added to &lt;a class="" href="/apps/trac/elftoolchain/browser/trunk/libelf"&gt;libelf/&lt;/a&gt; in changeset [[466]](/apps/trac/elftoolchain/changeset/466). These APIs will be present in the &lt;a class="" href="/p/elftoolchain/wiki/Releases-Release0.5.1/"&gt;v0.5&lt;/a&gt; and subsequent releases. &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joseph Koshy</dc:creator><pubDate>Wed, 25 Dec 2013 07:30:44 -0000</pubDate><guid>https://sourceforge.net570882b67435e80a4b8a88bbca180881202ce209</guid></item></channel></rss>