]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Don't exclude sh_type >= SHT_NUM from stripping.
authorRoland McGrath <roland@hack.frob.com>
Thu, 22 Mar 2012 17:25:55 +0000 (10:25 -0700)
committerRoland McGrath <roland@hack.frob.com>
Thu, 22 Mar 2012 17:25:55 +0000 (10:25 -0700)
libelf/ChangeLog
libelf/elf-knowledge.h

index 09af05dea8147bad745129cbb016781d785ecedd..19b76e8d26d0d1b5a4ed597ac929a8bfa9fd082d 100644 (file)
@@ -1,3 +1,7 @@
+2012-03-21  Roland McGrath  <roland@hack.frob.com>
+
+       * elf-knowledge.h (SECTION_STRIP_P): Remove < SHT_NUM check.
+
 2011-02-26  Mark Wielaard  <mjw@redhat.com>
 
        * elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini.
index 8b4c0d7b4afe5687d1e401fab751777afa270195..bda192cb578006423a27be7a8fc4d64ed6e07b05 100644 (file)
@@ -1,5 +1,5 @@
 /* Accumulation of various pieces of knowledge about ELF.
-   Copyright (C) 2000, 2001, 2002, 2003, 2005 Red Hat, Inc.
+   Copyright (C) 2000-2012 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
        || (strncmp (name, ".gnu.warning.", sizeof ".gnu.warning." - 1) != 0   \
           /* We remove .comment sections only if explicitly told to do so. */\
           && (remove_comment                                                 \
-              || strcmp (name, ".comment") != 0)))                           \
-   /* So far we do not remove any of the non-standard sections.                      \
-      XXX Maybe in future.  */                                               \
-   && (shdr)->sh_type < SHT_NUM)
+              || strcmp (name, ".comment") != 0))))
 
 
 /* Test whether `sh_info' field in section header contains a section