summaryrefslogtreecommitdiff
path: root/src/elfcmp.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-08-01 07:18:47 +0000
committerUlrich Drepper <drepper@redhat.com>2005-08-01 07:18:47 +0000
commit8533dcf02c74929d06533c842f41ecf603dfd969 (patch)
tree05b4f8d225ddfd4660f3d3e004c1ce434f990db3 /src/elfcmp.c
parent5a67cacd0494e7b5ad166267ce722a93c4b28d2a (diff)
downloadelfutils-8533dcf02c74929d06533c842f41ecf603dfd969.tar.gz
Relax elfcmp to ignore section count and the position of the section
name string table position.
Diffstat (limited to 'src/elfcmp.c')
-rw-r--r--src/elfcmp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/elfcmp.c b/src/elfcmp.c
index 9ba08c19..1b34e6b7 100644
--- a/src/elfcmp.c
+++ b/src/elfcmp.c
@@ -163,9 +163,7 @@ main (int argc, char *argv[])
|| ehdr1->e_ehsize != ehdr2->e_ehsize
|| ehdr1->e_phentsize != ehdr2->e_phentsize
|| ehdr1->e_phnum != ehdr2->e_phnum
- || ehdr1->e_shentsize != ehdr2->e_shentsize
- || ehdr1->e_shnum != ehdr2->e_shnum
- || ehdr1->e_shstrndx != ehdr2->e_shstrndx)
+ || ehdr1->e_shentsize != ehdr2->e_shentsize)
{
if (! quiet)
error (0, 0, gettext ("%s %s diff: ELF header"), fname1, fname2);