<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.sysutils.elfutils.devel">
    <title>gmane.comp.sysutils.elfutils.devel</title>
    <link>http://blog.gmane.org/gmane.comp.sysutils.elfutils.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2191"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2183"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2182"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2176"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2172"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2171"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2169"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2166"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2162"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2143"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2131"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2123"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2113"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2112"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2111"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2110"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2109"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2108"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2105"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2103"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2191">
    <title>FYI small test environment tweak</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2191</link>
    <description>&lt;pre&gt;I pushed the following:

commit dbbc67a97ace66c3adc299f26261fdec99d0c0d6
Author: Mark Wielaard &amp;lt;mjw&amp;lt; at &amp;gt;redhat.com&amp;gt;
Date:   Fri May 11 12:57:57 2012 +0200

    TESTS_ENVIRONMENT set LC_ALL and LANG to C.
    
    Some tests rely on sort order and output of tools that might be localized.
    
    Reported-by: Paweł Sikora &amp;lt;pluto&amp;lt; at &amp;gt;pld-linux.org&amp;gt;

diff --git a/tests/ChangeLog b/tests/ChangeLog
index 4c6e9f7..841742d 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1,3 +1,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
+2012-05-11  Mark Wielaard  &amp;lt;mjw&amp;lt; at &amp;gt;redhat.com&amp;gt;
+
+       * Makefile.am (TESTS_ENVIRONMENT): Set LC_ALL and LANG to C.
+
 2012-05-07  Mark Wielaard  &amp;lt;mjw&amp;lt; at &amp;gt;redhat.com&amp;gt;
 
        * low_high_pc.c: Allow highpc == lowpc for CU DIEs for buggy GCC.
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 61247e4..660791c 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -169,13 +169,14 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; EXTRA_DIST = run-arextract.sh run-arsymtest.sh \
 
 installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir) \
                              bindir=$(DES&lt;/pre&gt;</description>
    <dc:creator>Mark Wielaard</dc:creator>
    <dc:date>2012-05-11T11:08:56</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2183">
    <title>Function symbol retention after stripping</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2183</link>
    <description>&lt;pre&gt;Hi all,

I'm trying to get gbd backtraces to give function names without having
a package's debuginfo installed. Would elfutils take a patch allowing
strip to take an option for keeping the minimal amount of information
needed to do this?

I'm still trying to figure out how to do this exactly but right now I
think I would be keeping SHT_SYMTAB and SHT_DYNSYM function symbols
but I haven't looked at this code before and I'm still trying to
figure out how it all comes together. Any advice would be appreciated
if you'd be okay with this functionality in elfutils.


Thanks,
William
_______________________________________________
elfutils-devel mailing list
elfutils-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/elfutils-devel
&lt;/pre&gt;</description>
    <dc:creator>Douglas, William</dc:creator>
    <dc:date>2012-05-07T18:51:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2182">
    <title>FYI: tests/low_high_pc.c: Allow highpc == lowpc for CU DIEs forbuggy GCC.</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2182</link>
    <description>&lt;pre&gt;I pushed the following. Although the bug is fixed in GCC 4.7 that has
only been released last month. Most distros are still based on 4.6 or
lower.

commit d9bc75fc20f0ce5064cac192a518af3c7192e96d
Author: Mark Wielaard &amp;lt;mjw&amp;lt; at &amp;gt;redhat.com&amp;gt;
Date:   Mon May 7 13:29:52 2012 +0200

    tests/low_high_pc.c: Allow highpc == lowpc for CU DIEs for buggy GCC.
    
    GCC &amp;lt; 4.7 had a bug where no code CUs got a highpc == lowpc.
    Allow that, because it is not the main purpose of this test.

diff --git a/tests/ChangeLog b/tests/ChangeLog
index abc7340..4c6e9f7 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1,3 +1,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
+2012-05-07  Mark Wielaard  &amp;lt;mjw&amp;lt; at &amp;gt;redhat.com&amp;gt;
+
+* low_high_pc.c: Allow highpc == lowpc for CU DIEs for buggy GCC.
+
 2012-04-27  Mark Wielaard  &amp;lt;mjw&amp;lt; at &amp;gt;redhat.com&amp;gt;
 
 * Makefile.am (TESTS): Add run-low_high_pc.sh
diff --git a/tests/low_high_pc.c b/tests/low_high_pc.c
index 3054046..6fc8b15 100644
--- a/tests/low_high_pc.c
+++ b/tests/low_high_pc.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -72,9 +72,12 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; handle_die (Dwarf_Die *die, void *&lt;/pre&gt;</description>
    <dc:creator>Mark Wielaard</dc:creator>
    <dc:date>2012-05-07T11:34:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2176">
    <title>PATCH: dwarf_highpc: Handle DW_AT_high_pc being a constant offsetfrom DW_AT_low_pc.</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2176</link>
    <description>&lt;pre&gt;Hi,

The DWARF spec says (since version 4) that DW_AT_high_pc can be
represented by a constant form.

        If the value of the DW_AT_high_pc is of class address, it is the
        relocated address of the first location past the last
        instruction associated with the entity; if it is of class
        constant, the value is an unsigned integer offset which when
        added to the low PC gives the address of the first location past
        the last instruction associated with the entity.

I have a patch for gcc to encode DW_AT_high_pc this way (which saves a
lot of relocations) and jakub has a patch for dwz to encode
DW_AT_high_pc in the smallest possible constant form, which can save ~1%
on the size of debuginfo.

The attached patch adds a testcase for this and makes dwarf_highpc ()
handle the constant form.

Does this look OK?

Thanks,

Mark
_______________________________________________
elfutils-devel mailing list
elfutils-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/el&lt;/pre&gt;</description>
    <dc:creator>Mark Wielaard</dc:creator>
    <dc:date>2012-04-27T11:11:27</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2172">
    <title>FYI: Removed old libdwarf test show-ciefde.</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2172</link>
    <description>&lt;pre&gt;Hi,

elfutils libdwarf was removed a long time ago and this testcase was
never actually ran anyway (which is why nobody noticed it was broken).
I just removed it.

commit bdad8e39aede889dbac95944a07eaebdebe4ad89
Author: Mark Wielaard &amp;lt;mjw&amp;lt; at &amp;gt;redhat.com&amp;gt;
Date:   Thu Apr 26 12:24:33 2012 +0200

    Removed old libdwarf test show-ciefde.

diff --git a/tests/ChangeLog b/tests/ChangeLog
index c38ede5..ffe61d5 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1,3 +1,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
+2012-04-26  Mark Wielaard  &amp;lt;mjw&amp;lt; at &amp;gt;redhat.com&amp;gt;
+
+       * Makefile.am (EXTRA_DIST): Remove run-show-ciefde.sh.
+       * run-show-ciefde.sh: Removed old libdwarf test.
+       * show-ciefde.c: Likewise.

_______________________________________________
elfutils-devel mailing list
elfutils-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/elfutils-devel
&lt;/pre&gt;</description>
    <dc:creator>Mark Wielaard</dc:creator>
    <dc:date>2012-04-26T10:28:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2171">
    <title>elflint: (zero sized section) alloc flag set but section not in anyloaded segment</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2171</link>
    <description>&lt;pre&gt;Hi,

Against development versions of gcc/binutils elflint gives some
complaints like:

section [24] '.tm_clone_table': alloc flag set but section not in any
loaded segment

This is because that section's size is zero. So it is somewhat
reasonable IMHO that the linker doesn't put it in any segment.

Is the following patch to elflint OK?

Thanks,

Mark
_______________________________________________
elfutils-devel mailing list
elfutils-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/elfutils-devel
&lt;/pre&gt;</description>
    <dc:creator>Mark Wielaard</dc:creator>
    <dc:date>2012-04-26T09:58:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2169">
    <title>FYI: readelf.c (print_ops): Add missing DW_OP_GNU operands.</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2169</link>
    <description>&lt;pre&gt;Pushed the following commit as obvious.

commit 716486d5a15bdfb528c5d011dc623fa0f6fdc2af
Author: Mark Wielaard &amp;lt;mjw&amp;lt; at &amp;gt;redhat.com&amp;gt;
Date:   Tue Apr 24 11:56:42 2012 +0200

    readelf.c (print_ops): Add missing DW_OP_GNU operands.
    
    DW_OP_GNU_push_tls_address, DW_OP_GNU_uinit and DW_OP_GNU_encoded_addr.

diff --git a/src/ChangeLog b/src/ChangeLog
index 642df1b..cae5e6b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1,3 +1,8 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
+2012-04-24  Mark Wielaard  &amp;lt;mjw&amp;lt; at &amp;gt;redhat.com&amp;gt;
+
+* readelf.c (print_ops): Add DW_OP_GNU_push_tls_address,
+DW_OP_GNU_uinit and DW_OP_GNU_encoded_addr.
+
 2012-03-28  Roland McGrath  &amp;lt;roland&amp;lt; at &amp;gt;hack.frob.com&amp;gt;
 
 * elflint.c (special_sections): Accept SHF_INFO_LINK for reloc sections.
diff --git a/src/readelf.c b/src/readelf.c
index b70779d..b4e9fc8 100644
--- a/src/readelf.c
+++ b/src/readelf.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -4065,6 +4065,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; print_ops (Dwfl_Module *dwflmod, Dwarf *dbg, int indent, int indentrest,
       [DW_OP_bit_piece] = "bit_piece",
       [DW_OP_implicit_value] = "implicit_value",
    &lt;/pre&gt;</description>
    <dc:creator>Mark Wielaard</dc:creator>
    <dc:date>2012-04-24T10:00:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2166">
    <title>Elfutils 0.153 build problem</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2166</link>
    <description>&lt;pre&gt;I'm trying (and failing) to build elfutils 0.153 on my i686 Linux box.

The lines around the error are:

gcc -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2
-g -O2   -o libdw.so -shared -o libdw.so
-Wl,--soname,libdw.so.1,-z,defs \
-Wl,--enable-new-dtags,-rpath,/usr/lib/elfutils \
-Wl,--version-script,libdw.map,--no-undefined \
-Wl,--whole-archive libdw_pic.a ../libdwfl/libdwfl_pic.a
../libebl/libebl.a ../libelf/libelf.so -Wl,--no-whole-archive\
-ldl -llzma -lbz2 -lz
if readelf -d libdw.so | fgrep -q TEXTREL; then exit 1; fi
make[1]: *** [libdw.so] Error 1

For good measure I ran "readelf -d | fgrep TEXTREL" on libdl.so,
liblzma.so, libbz2.so, and libz.so, but they all come back clean.

Running readelf -d libdw.so gets me:

Dynamic section at offset 0x49a60 contains 32 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libelf.so.1]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)  &lt;/pre&gt;</description>
    <dc:creator>Zachary McGrew</dc:creator>
    <dc:date>2012-04-13T00:54:22</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2162">
    <title>[Patch] gelf_offscn vs SHT_NOBITS</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2162</link>
    <description>&lt;pre&gt;Hi,

While coming up with a test case for rhbz#807823 "elflint doesn't
recognize SHF_INFO_LINK on relocation sections", I came across another
issue. Not just with elflint, but also with readelf -d. If there is a
SHT_NOBITS section before the .dynamic section then gelf_offscn will
miss it. The solution is similar to commit e9c4e8 (Do not match empty
sections at OFFSET), skip SHT_NOBITS sections too if there is a "real"
section at the same offset that does have content. Does the solution
look sane?

The test binary is a testcase for both this issue and the original
rhbz#807823. Both tests fail before and succeed after the fixes.

Patch attached and in git on the mjw/offscn_nobits branch for those that
want to check out the test binary.

Cheers,

Mark
commit 191d1f0b9163593eee8c4f5cbe3e95cabf6ae9a9
Author: Mark Wielaard &amp;lt;mjw&amp;lt; at &amp;gt;redhat.com&amp;gt;
Date:   Mon Apr 2 17:11:25 2012 +0200

    elf32_offscn.c: Do not match SHT_NOBITS sections at OFFSET.
    
    readelf -d doesn't work if a SHT_NOBITS section is right be&lt;/pre&gt;</description>
    <dc:creator>Mark Wielaard</dc:creator>
    <dc:date>2012-04-02T15:34:41</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2143">
    <title>[Patch] Don't relocate compressed sections</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2143</link>
    <description>&lt;pre&gt;Hi,

As pointed out in https://bugzilla.redhat.com/show_bug.cgi?id=807053
relocating a compressed section will corrupt it. To more properly
support compressed sections we should finish the roland/relocate branch
for lazy relocations work. The best we can do for now is to not corrupt
the contents of the compressed sections and not crash when we don't have
all Dwarf debug section data. The attached two patches do that.

Cheers,

Mark
_______________________________________________
elfutils-devel mailing list
elfutils-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/elfutils-devel
&lt;/pre&gt;</description>
    <dc:creator>Mark Wielaard</dc:creator>
    <dc:date>2012-03-28T09:44:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2131">
    <title>FYI: readelf.c (print_gdb_index_section): Accept version 6.</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2131</link>
    <description>&lt;pre&gt;Hi,

Just applied the following to accept a newer version number
for .gdb_index in readelf. No real change in the format, the updated
version is just a marker that there are more symbols in the index
available.

Cheers,

Mark
_______________________________________________
elfutils-devel mailing list
elfutils-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/elfutils-devel
&lt;/pre&gt;</description>
    <dc:creator>Mark Wielaard</dc:creator>
    <dc:date>2012-03-21T15:13:32</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2123">
    <title>Strip on mips</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2123</link>
    <description>&lt;pre&gt;Hi,

I'm trying to debug why strip on mips isn't working properly.
What I see is that for the debug sections, sh_type is not set to
SHT_PROGBITS but to SHT_MIPS_DWARF.

The stripped file still ends up with the debug information it it,
and the file that is supposed to have the debug symbols in it
has it set to SHT_NOBITS, and is rather small.

I'm assuming this is because of the SHT_MIPS_DWARF.  I'm not sure
how to find where it's going wrong.


Kurt

_______________________________________________
elfutils-devel mailing list
elfutils-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/elfutils-devel
&lt;/pre&gt;</description>
    <dc:creator>Kurt Roeckx</dc:creator>
    <dc:date>2012-03-20T23:13:41</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2113">
    <title>[PATCH 5/5] Make it possible to read multiple .debug_types sections.Each new .debug_types section is added to the end ofthe section vector. Various internal APIs were updatedto understand multiple .debug_types sections. A newfunction, dwarf_next_unit_or_section, was added toallow iteration over multiple type sections.</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2113</link>
    <description>&lt;pre&gt; libdw/ChangeLog                            |   29 +++++++++++
 libdw/dwarf_begin_elf.c                    |   53 ++++++++++++++++----
 libdw/dwarf_formref_die.c                  |    4 +-
 libdw/dwarf_getlocation_implicit_pointer.c |    4 +-
 libdw/dwarf_nextcu.c                       |   67 +++++++++++++++++++++++---
 libdw/dwarf_offdie.c                       |   19 +++++---
 libdw/libdw.h                              |   21 ++++++++-
 libdw/libdw.map                            |    5 ++
 libdw/libdwP.h                             |    9 +++-
 libdw/libdw_findcu.c                       |   34 ++++++++-----
 tests/ChangeLog                            |   10 ++++
 tests/Makefile.am                          |   10 ++--
 tests/debugtypes.c                         |   72 ++++++++++++++++++++++++++++
 tests/run-debugtypes.sh                    |   35 +++++++++++++
 tests/testfile59.bz2                       |  Bin 0 -&amp;gt; 1424 bytes
 15 files changed, 325 insertions(+), 47 deletions(-)
 create mode 100644 tests/de&lt;/pre&gt;</description>
    <dc:creator>Tom Tromey</dc:creator>
    <dc:date>2012-03-20T19:45:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2112">
    <title>[PATCH 4/5] remove section-group code from check_section</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2112</link>
    <description>&lt;pre&gt; libdw/ChangeLog         |    5 +++++
 libdw/dwarf_begin_elf.c |   16 +++-------------
 2 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index c3dbda9..60f9ae0 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1,5 +1,10 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 2012-03-20  Tom Tromey  &amp;lt;tromey&amp;lt; at &amp;gt;redhat.com&amp;gt;
 
+* dwarf_begin_elf.c (check_section): Remove 'inscngrp' argument.
+(global_read, scngrp_read): Update.
+
+2012-03-20  Tom Tromey  &amp;lt;tromey&amp;lt; at &amp;gt;redhat.com&amp;gt;
+
 * libdwP.h (struct Dwarf) [n_sections]: New field.
 [sectiondata]: Change type.
 * dwarf_end.c (__libdw_free_zdata): Use n_sections.
diff --git a/libdw/dwarf_begin_elf.c b/libdw/dwarf_begin_elf.c
index def8ed6..4a726ce 100644
--- a/libdw/dwarf_begin_elf.c
+++ b/libdw/dwarf_begin_elf.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -88,7 +88,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static const char dwarf_scnnames[IDX_last][17] =
 
 
 static Dwarf *
-check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp)
+check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn)
 {
   GElf_Shdr shdr_mem;
   &lt;/pre&gt;</description>
    <dc:creator>Tom Tromey</dc:creator>
    <dc:date>2012-03-20T19:28:40</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2111">
    <title>[PATCH 3/5] Change sectiondata to be dynamically allocated. Thisallows us to later add multiple .debug_types sectionsto the section data vector.</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2111</link>
    <description>&lt;pre&gt; libdw/ChangeLog         |   10 ++++++++++
 libdw/dwarf_begin_elf.c |   13 +++++++++++++
 libdw/dwarf_end.c       |    4 +++-
 libdw/libdwP.h          |    5 ++++-
 4 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 6fb5d8d..c3dbda9 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1,5 +1,15 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 2012-03-20  Tom Tromey  &amp;lt;tromey&amp;lt; at &amp;gt;redhat.com&amp;gt;
 
+* libdwP.h (struct Dwarf) [n_sections]: New field.
+[sectiondata]: Change type.
+* dwarf_end.c (__libdw_free_zdata): Use n_sections.
+(dwarf_end): Free the section data.
+* dwarf_begin_elf.c (check_section, valid_p, scngrp_read): Free
+the section data.
+(dwarf_begin_elf): Allocate the section data.
+
+2012-03-20  Tom Tromey  &amp;lt;tromey&amp;lt; at &amp;gt;redhat.com&amp;gt;
+
 * libdwP.h (IDX_debug_types): Move just before IDX_last.
 * dwarf_begin_elf.c (dwarf_scnnames): Move .debug_types to the
 end.
diff --git a/libdw/dwarf_begin_elf.c b/libdw/dwarf_begin_elf.c
index e62ef07..def8ed6 100644
--- a/libdw/dwarf_begin_elf.c
+++ b/libd&lt;/pre&gt;</description>
    <dc:creator>Tom Tromey</dc:creator>
    <dc:date>2012-03-20T19:20:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2110">
    <title>[PATCH 2/5] Make IDX_debug_types come last. In a subsequent patch wewill put all .debug_types sections at the end the ofthe section array. This change arranges for them toappear sequentially.</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2110</link>
    <description>&lt;pre&gt; libdw/ChangeLog         |    6 ++++++
 libdw/dwarf_begin_elf.c |    6 +++---
 libdw/libdwP.h          |    2 +-
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 8a556ec..6fb5d8d 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1,5 +1,11 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 2012-03-20  Tom Tromey  &amp;lt;tromey&amp;lt; at &amp;gt;redhat.com&amp;gt;
 
+* libdwP.h (IDX_debug_types): Move just before IDX_last.
+* dwarf_begin_elf.c (dwarf_scnnames): Move .debug_types to the
+end.
+
+2012-03-20  Tom Tromey  &amp;lt;tromey&amp;lt; at &amp;gt;redhat.com&amp;gt;
+
 * libdwP.h (struct Dwarf_Section): New.
 (Dwarf_Section): New typedef.
 (struct Dwarf) [sectiondata]: Change type.
diff --git a/libdw/dwarf_begin_elf.c b/libdw/dwarf_begin_elf.c
index f7ae8ab..e62ef07 100644
--- a/libdw/dwarf_begin_elf.c
+++ b/libdw/dwarf_begin_elf.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1,5 +1,5 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 /* Create descriptor from ELF descriptor for processing file.
-   Copyright (C) 2002-2011 Red Hat, Inc.
+   Copyright (C) 2002-2012 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by &lt;/pre&gt;</description>
    <dc:creator>Tom Tromey</dc:creator>
    <dc:date>2012-03-20T19:10:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2109">
    <title>[PATCH 1/5] Change representation of section data. This is justpreparation for a subsequent patch that makes thenumber of sections dynamic.</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2109</link>
    <description>&lt;pre&gt; libdw/ChangeLog           |   24 ++++++++++++++++++++++++
 libdw/dwarf_begin_elf.c   |   12 ++++++------
 libdw/dwarf_child.c       |    6 +++---
 libdw/dwarf_end.c         |   15 ++++++---------
 libdw/dwarf_formref_die.c |    2 +-
 libdw/dwarf_formstring.c  |    4 ++--
 libdw/dwarf_formudata.c   |    2 +-
 libdw/dwarf_getabbrev.c   |    6 +++---
 libdw/dwarf_getaranges.c  |   12 ++++++------
 libdw/dwarf_getattrs.c    |    4 ++--
 libdw/dwarf_getcfi.c      |    4 ++--
 libdw/dwarf_getmacros.c   |    2 +-
 libdw/dwarf_getpubnames.c |   20 ++++++++++++--------
 libdw/dwarf_getstring.c   |   12 +++++++-----
 libdw/dwarf_nextcu.c      |    8 ++++----
 libdw/dwarf_offdie.c      |    2 +-
 libdw/dwarf_ranges.c      |    2 +-
 libdw/libdwP.h            |   27 ++++++++++++++++++---------
 libdwfl/ChangeLog         |    4 ++++
 libdwfl/cu.c              |    3 ++-
 src/ChangeLog             |    6 ++++++
 src/readelf.c             |    4 ++--
 22 files changed, 114 insertions(+), 67 deletions(-)

diff --git a/libd&lt;/pre&gt;</description>
    <dc:creator>Tom Tromey</dc:creator>
    <dc:date>2012-03-20T19:06:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2108">
    <title>[0/5] handle multiple .debug_types sections</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2108</link>
    <description>&lt;pre&gt;I added support for multiple .debug_types sections to libdw.

I consider this a WIP patch.  There is one definitely bad patch (#4) and
of course the usual stylistic things; in particular the new CU-iterating
function (in patch #5) is pretty ugly.

I'd appreciate feedback on this.

Tom
_______________________________________________
elfutils-devel mailing list
elfutils-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/elfutils-devel
&lt;/pre&gt;</description>
    <dc:creator>Tom Tromey</dc:creator>
    <dc:date>2012-03-20T19:57:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2105">
    <title>libdw patch for .debug_types iteration</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2105</link>
    <description>&lt;pre&gt;
Tom

From 1b85426f7a1fa39cfb9ff83b864e825072115847 Mon Sep 17 00:00:00 2001
From: Tom Tromey &amp;lt;tromey&amp;lt; at &amp;gt;redhat.com&amp;gt;
Date: Mon, 19 Mar 2012 11:46:45 -0600
Subject: [PATCH] Fix bug using dwarf_next_unit to iterate over .debug_types

* libdw_findcu.c (findcu_cb): Move earlier.
(__libdw_intern_next_unit): Add new CU to search tree here...
(__libdw_findcu): ... not here.

If you call dwarf_next_unit to iterate over .debug_types, then call
dwarf_offdie_types, you can see a failure if some earlier call
happened to call __libdw_intern_next_unit via dwarf_formref_die.

What happens is that __libdw_intern_next_unit updates the Dwarf's
next_tu_offset, but does not add the TU to the TU search tree.  So,
the call to dwarf_offdie_types does not find the TU in the tree, and
will not search any more, causing a failure.

This fix changes __libdw_intern_next_unit to add the TU to the search
tree, rather than relying on __libdw_findcu to do it.
---
 libdw/ChangeLog      |    6 ++++
 libdw/libdw_findcu.c |   68 +++++++++++++++&lt;/pre&gt;</description>
    <dc:creator>Tom Tromey</dc:creator>
    <dc:date>2012-03-19T17:54:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2103">
    <title>elf_end(): rwlock_fini() with a locked object</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2103</link>
    <description>&lt;pre&gt;Hi,

In libelf/elf_end.c:244 you have:
  rwlock_fini (elf-&amp;gt;lock);

But this lock is always still held when you get there.

I see this:
[...]
 
And I get this on Debian's kfreebsd port, resulting in an
assertion failure.  I wonder why I'm not getting it on other
ports.

Adding a "rwlock_unlock (elf-&amp;gt;lock);" just in front of that
line fixes the problem.


Kurt

_______________________________________________
elfutils-devel mailing list
elfutils-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/elfutils-devel
&lt;/pre&gt;</description>
    <dc:creator>Kurt Roeckx</dc:creator>
    <dc:date>2012-02-25T23:11:43</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2097">
    <title>addr2line format specifiers</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2097</link>
    <description>&lt;pre&gt;Hi,

addr2line.c:457 has:
      char *name = NULL;
      if (sscanf (string, "(%m[^)])%" PRIiMAX "%n", &amp;amp;name, &amp;amp;addr, &amp;amp;i) == 2
          &amp;amp;&amp;amp; string[i] == '\0')
        parsed = adjust_to_section (name, &amp;amp;addr, dwfl);
      switch (sscanf (string, "%m[^-+]%n%" PRIiMAX "%n", &amp;amp;name, &amp;amp;i, &amp;amp;addr, &amp;amp;j))

And in the portability branch that got changed to:
      char *name = NULL;
      if (sscanf (string, "(%a[^)])%" PRIiMAX "%n", &amp;amp;name, &amp;amp;addr, &amp;amp;i) == 2
          &amp;amp;&amp;amp; string[i] == '\0')
        parsed = adjust_to_section (name, &amp;amp;addr, dwfl);
      switch (sscanf (string, "%a[^-+]%n%" PRIiMAX "%n", &amp;amp;name, &amp;amp;i, &amp;amp;addr, &amp;amp;j))

But I think that that doesn't make sense.  Isn't %m the gnu extention,
and that %a now follows the C99 standard and expects a float *?


Kurt

_______________________________________________
elfutils-devel mailing list
elfutils-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/elfutils-devel
&lt;/pre&gt;</description>
    <dc:creator>Kurt Roeckx</dc:creator>
    <dc:date>2012-02-24T21:36:32</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.sysutils.elfutils.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.sysutils.elfutils.devel</link>
  </textinput>
</rdf:RDF>

