From 8e8f0be57354d3fa094d0927930dbe1bc1ce8816 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 22 Mar 2012 10:25:55 -0700 Subject: Don't exclude sh_type >= SHT_NUM from stripping. --- libelf/elf-knowledge.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'libelf/elf-knowledge.h') diff --git a/libelf/elf-knowledge.h b/libelf/elf-knowledge.h index 8b4c0d7b..bda192cb 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 -- cgit v1.2.3