]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix for the same
authorPetr Machata <pmachata@redhat.com>
Tue, 6 Apr 2010 12:17:41 +0000 (14:17 +0200)
committerPetr Machata <pmachata@redhat.com>
Tue, 6 Apr 2010 12:18:18 +0000 (14:18 +0200)
* Initialize data.s for data that do not need a conversion.

libelf/ChangeLog
libelf/elf_getdata.c

index b0cff67c35859d15fe7ae99be7cbfa8c62068cae..1fbdf4ccfb670f4c4e1731d69cca3c0210c096ad 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-01  Petr Machata  <pmachata@redhat.com>
+
+       * elf_getdata.c (__elf_getdata_rdlock): Initialize data.s for data
+       that do not need a conversion.
+
 2010-03-11  Roland McGrath  <roland@redhat.com>
 
        * elf.h: Update from glibc.
index e083b033f6cfeb65f35496f9240973771e3692dd..5a718f82e2621ba9e652bb939feab20bb989fc91 100644 (file)
@@ -467,9 +467,12 @@ __elf_getdata_rdlock (scn, data)
                        scn->rawdata.d.d_size, scn->rawdata.d.d_type);
        }
       else
-       /* This is an empty or NOBITS section.  There is no buffer but
-          the size information etc is important.  */
-       scn->data_list.data.d = scn->rawdata.d;
+       {
+         /* This is an empty or NOBITS section.  There is no buffer but
+            the size information etc is important.  */
+         scn->data_list.data.d = scn->rawdata.d;
+         scn->data_list.data.s = scn;
+       }
 
       scn->data_list_rear = &scn->data_list;
     }