summaryrefslogtreecommitdiffstats
path: root/libelf/elf-knowledge.h
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2012-03-22 10:25:55 -0700
committerRoland McGrath <[email protected]>2012-03-22 10:25:55 -0700
commit8e8f0be57354d3fa094d0927930dbe1bc1ce8816 (patch)
tree2dbb14e8addcff151edf4dda81be56a8154b6bb7 /libelf/elf-knowledge.h
parent581c3f60e2b1fc7ddaf4260bb5a9cb59f8e3f0d0 (diff)
Don't exclude sh_type >= SHT_NUM from stripping.
Diffstat (limited to 'libelf/elf-knowledge.h')
-rw-r--r--libelf/elf-knowledge.h7
1 files changed, 2 insertions, 5 deletions
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 <[email protected]>, 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