summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libelf/ChangeLog5
-rw-r--r--libelf/elf32_updatefile.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libelf/ChangeLog b/libelf/ChangeLog
index e6ac1d21..30118e29 100644
--- a/libelf/ChangeLog
+++ b/libelf/ChangeLog
@@ -1,3 +1,8 @@
+2009-02-10 Ulrich Drepper <[email protected]>
+
+ * elf32_updatefile.c (updatefile): Fir the zeroth section we still
+ have to copy the section header.
+
2009-02-01 Ulrich Drepper <[email protected]>
* elf_strptr.c: Add comment re possible problem.
diff --git a/libelf/elf32_updatefile.c b/libelf/elf32_updatefile.c
index def4c09a..a4d83a1c 100644
--- a/libelf/elf32_updatefile.c
+++ b/libelf/elf32_updatefile.c
@@ -662,7 +662,7 @@ __elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum)
/* The dummy section header entry. It should not be
possible to mark this "section" as dirty. */
assert ((scn->flags & ELF_F_DIRTY) == 0);
- continue;
+ goto next;
}
ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS);