From: Ulrich Drepper Date: Wed, 5 Apr 2006 03:13:34 +0000 (+0000) Subject: One more fixup for elf_update. X-Git-Tag: elfutils-0.120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a5052a8e16f38f8a0d0b3c5925e743608036ed9;p=thirdparty%2Felfutils.git One more fixup for elf_update. --- diff --git a/config/elfutils.spec.in b/config/elfutils.spec.in index 6bc008d87..8a232a0ab 100644 --- a/config/elfutils.spec.in +++ b/config/elfutils.spec.in @@ -154,6 +154,13 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/libelf.so %changelog +* Tue Apr 4 2006 Ulrich Drepper 0.120-1 +- Bug fixes. +- dwarf.h updated for DWARF 3.0 final specification. +- libdwfl: New function dwfl_version. +- The license is now GPL for most files. The libelf, libebl, libdw,and +libdwfl libraries have additional exceptions. Add reference toOIN. + * Thu Mar 30 2006 Roland McGrath 0.120-1 - Bug fixes. - dwarf.h updated for DWARF 3.0 final specification. diff --git a/libelf/elf32_updatefile.c b/libelf/elf32_updatefile.c index 59973503a..7561a685d 100644 --- a/libelf/elf32_updatefile.c +++ b/libelf/elf32_updatefile.c @@ -231,7 +231,8 @@ __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum) assert ((char *) elf->map_address + elf->start_offset < (char *) scn->shdr.ELFW(e,LIBELFBITS)); assert ((char *) scn->shdr.ELFW(e,LIBELFBITS) - < (char *) elf->map_address + elf->maximum_size); + < ((char *) elf->map_address + elf->start_offset + + elf->maximum_size)); void *p = alloca (sizeof (ElfW2(LIBELFBITS,Shdr))); scn->shdr.ELFW(e,LIBELFBITS)