+2015-05-30 Mark Wielaard <mjw@redhat.com>
+
+ * elfcmp.c (main): Only call memcmp when d_size != 0.
+
2015-05-23 Mark Wielaard <mjw@redhat.com>
* Makefile.am: Define ldgeneric, readelf, nm, size, strip, elflint,
/* Compare relevant content of two ELF files.
- Copyright (C) 2005-2012, 2014 Red Hat, Inc.
+ Copyright (C) 2005-2012, 2014, 2015 Red Hat, Inc.
This file is part of elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2005.
if (unlikely (data1->d_size != data2->d_size
|| (shdr1->sh_type != SHT_NOBITS
+ && data1->d_size != 0
&& memcmp (data1->d_buf, data2->d_buf,
data1->d_size) != 0)))
{