]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix commit in updatenull_wrlock wrt to layout resulting from section header
authorUlrich Drepper <drepper@redhat.com>
Mon, 26 Jan 2009 17:20:36 +0000 (09:20 -0800)
committerUlrich Drepper <drepper@redhat.com>
Mon, 26 Jan 2009 17:20:36 +0000 (09:20 -0800)
table position and size.

libelf/ChangeLog
libelf/elf32_updatenull.c

index 119fa5b1e1e3dd51765c648f61fd68fe8ba92739..87c24e4f9bc8618bb7d81d7af0f3e87d33c2e1f2 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-26  Ulrich Drepper  <drepper@redhat.com>
+
+       * elf32_updatenull.c (updatenull_wrlock): Fix comment of
+       ELF_F_LAYOUT behaviour re section header table.
+
 2009-01-22  Ulrich Drepper  <drepper@redhat.com>
 
        * elf32_updatefile.c (__elfXX_updatemmap): Fill the gap between
index a18d0bea050e7d590e724f0e08f58036df89765a..5ce8bbc948e9bda0524ddd2f564fcf0a283ee7c0 100644 (file)
@@ -1,5 +1,5 @@
 /* Update data structures for changes.
-   Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
@@ -401,8 +401,9 @@ __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum)
       /* Store section information.  */
       if (elf->flags & ELF_F_LAYOUT)
        {
-         /* The user is supposed to fill out e_phoff.  Use it and
-            e_phnum to determine the maximum extend.  */
+         /* The user is supposed to fill out e_shoff.  Use it and
+            e_shnum (or sh_size of the dummy, first section header)
+            to determine the maximum extend.  */
          size = MAX ((GElf_Word) size,
                      (ehdr->e_shoff
                       + (elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum))));