2005-08-12 Roland McGrath <roland@redhat.com>
* elf32_offscn.c: Do not match empty sections at OFFSET unless
there are no nonempty sections at that offset.
+2005-08-12 Roland McGrath <roland@redhat.com>
+
+ * elf32_offscn.c: Do not match empty sections at OFFSET unless
+ there are no nonempty sections at that offset.
+
2005-08-07 Ulrich Drepper <drepper@redhat.com>
* elf.h: Update from glibc.
if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_offset == offset)
{
result = &runp->data[i];
- goto out;
+
+ /* If this section is empty, the following one has the same
+ sh_offset. We presume the caller is looking for a nonempty
+ section, so keep looking if this one is empty. */
+ if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_size != 0)
+ goto out;
}
runp = runp->next;