From: Roland McGrath Date: Thu, 22 Mar 2012 17:25:55 +0000 (-0700) Subject: Don't exclude sh_type >= SHT_NUM from stripping. X-Git-Tag: elfutils-0.154~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e8f0be57354d3fa094d0927930dbe1bc1ce8816;p=thirdparty%2Felfutils.git Don't exclude sh_type >= SHT_NUM from stripping. --- diff --git a/libelf/ChangeLog b/libelf/ChangeLog index 09af05dea..19b76e8d2 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -1,3 +1,7 @@ +2012-03-21 Roland McGrath + + * elf-knowledge.h (SECTION_STRIP_P): Remove < SHT_NUM check. + 2011-02-26 Mark Wielaard * elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini. diff --git a/libelf/elf-knowledge.h b/libelf/elf-knowledge.h index 8b4c0d7b4..bda192cb5 100644 --- a/libelf/elf-knowledge.h +++ b/libelf/elf-knowledge.h @@ -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 , 2000. @@ -65,10 +65,7 @@ || (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