+2009-07-21 Ulrich Drepper <drepper@redhat.com>
+
+ * elf32_updatefile.c (__elfXX_updatemmap): Fix handling of gaps between
+ sections. Patch by Lubomir Rintel <lkundrak@v3.sk>.
+
2009-07-08 Roland McGrath <roland@redhat.com>
* libelfP.h (struct Elf): Remove unused ar.has_index field.
/* If there is a gap, fill it. */
if (scn_start + dl->data.d.d_off > last_position
- && ((previous_scn_changed && dl->data.d.d_off == 0)
+ && (dl->data.d.d_off == 0
|| ((scn->flags | dl->flags | elf->flags)
& ELF_F_DIRTY) != 0))
- fill_mmap (dl->data.d.d_off);
+ {
+ fill_mmap (dl->data.d.d_off);
+ last_position = scn_start + dl->data.d.d_off;
+ }
if ((scn->flags | dl->flags | elf->flags) & ELF_F_DIRTY)
{