]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Comment fix in last change.
authorRoland McGrath <roland@redhat.com>
Fri, 12 Dec 2008 05:23:44 +0000 (21:23 -0800)
committerRoland McGrath <roland@redhat.com>
Fri, 12 Dec 2008 05:23:44 +0000 (21:23 -0800)
libelf/elf32_updatefile.c

index 58ea755165835dc54650b8a717d10410b4573dfb..e88f4a45e71c9ed384de6a897f524e6a787748ff 100644 (file)
@@ -1,5 +1,5 @@
 /* Write changed data structures.
-   Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006, 2007 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
@@ -321,12 +321,12 @@ __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum)
                            && shdr_end < scn_start + dl->data.d.d_off)
                          memset (shdr_end, __libelf_fill_byte,
                                  scn_start + dl->data.d.d_off - shdr_end);
-
                      }
 
-                   /* Let it go backward if the sections are not
-                      presented in layout order, or use a bogus
-                      layout (overlaps, etc.).  */
+                   /* Let it go backward if the sections use a bogus
+                      layout with overlaps.  We'll overwrite the stupid
+                      user's section data with the latest one, rather than
+                      crashing.  */
 
                    last_position = scn_start + dl->data.d.d_off;
 
@@ -640,9 +640,10 @@ __elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum)
                          return 1;
                      }
 
-                   /* Let it go backward if the sections are not
-                      presented in layout order, or use a bogus
-                      layout (overlaps, etc.).  */
+                   /* Let it go backward if the sections use a bogus
+                      layout with overlaps.  We'll overwrite the stupid
+                      user's section data with the latest one, rather than
+                      crashing.  */
 
                    last_offset = scn_start + dl->data.d.d_off;