diff options
author | Roland McGrath <roland@hack.frob.com> | 2012-03-22 10:25:55 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2012-03-22 10:25:55 -0700 |
commit | 8e8f0be57354d3fa094d0927930dbe1bc1ce8816 (patch) | |
tree | 2dbb14e8addcff151edf4dda81be56a8154b6bb7 | |
parent | 581c3f60e2b1fc7ddaf4260bb5a9cb59f8e3f0d0 (diff) |
Don't exclude sh_type >= SHT_NUM from stripping.
-rw-r--r-- | libelf/ChangeLog | 4 | ||||
-rw-r--r-- | libelf/elf-knowledge.h | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/libelf/ChangeLog b/libelf/ChangeLog index 09af05de..19b76e8d 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -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. 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 <drepper@redhat.com>, 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 |