[Reproducible-builds] Bug#808267: diffoscope: Redundant information in ELF comparisons

2016-01-18 Thread Jérémy Bobbio
Hi Mike,

Mike Hommey:
> When comparing ELF files, the following commands are used:
> - readelf --all
> - readelf --debug-dump
> - objdump --disassemble --full-contents
> 
> objdump --disassemble --full-contents is actually redundant in itself. For
> example, it will dump both an hexdump and a disassembly of the .text section.
> It's also redundant with the output of readelf --debug-dump because it does an
> hexdump of the .debug_* sections that readelf --debug-dump does a dwarf dump
> of.

The master branch now compare ELF files section by section. If you could
test it and see if there's still redundancies, I would be grateful.

Thanks!
-- 
Lunar.''`. 
lu...@debian.org: :Ⓐ  :  # apt-get install anarchism
`. `'` 
  `-   


signature.asc
Description: Digital signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

[Reproducible-builds] Bug#808267: diffoscope: Redundant information in ELF comparisons

2016-01-18 Thread Mike Hommey
On Mon, Jan 18, 2016 at 07:20:38PM +0100, Jérémy Bobbio wrote:
> Hi Mike,
> 
> Mike Hommey:
> > When comparing ELF files, the following commands are used:
> > - readelf --all
> > - readelf --debug-dump
> > - objdump --disassemble --full-contents
> > 
> > objdump --disassemble --full-contents is actually redundant in itself. For
> > example, it will dump both an hexdump and a disassembly of the .text 
> > section.
> > It's also redundant with the output of readelf --debug-dump because it does 
> > an
> > hexdump of the .debug_* sections that readelf --debug-dump does a dwarf dump
> > of.
> 
> The master branch now compare ELF files section by section. If you could
> test it and see if there's still redundancies, I would be grateful.

It seems better, but there's still redundancy at least between `readelf
--wide --all` and `readelf --wide --hex-dump
{.symtab,.note.gnu-build-id,.rela.dyn,.rela.plt,.dynamic,.dynsym}` and other
sections ; just check the list of sections in the output of readelf
--all.

Reading the code suggests debug sections would also be redunded between
--debug-dump and --hex-dump for the individual sections, but I haven't
tested with binaries with debuginfo.

Mike

___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds


[Reproducible-builds] Bug#808267: diffoscope: Redundant information in ELF comparisons

2015-12-17 Thread Mike Hommey
Source: diffoscope
Version: 43
Severity: normal

When comparing ELF files, the following commands are used:
- readelf --all
- readelf --debug-dump
- objdump --disassemble --full-contents

objdump --disassemble --full-contents is actually redundant in itself. For
example, it will dump both an hexdump and a disassembly of the .text section.
It's also redundant with the output of readelf --debug-dump because it does an
hexdump of the .debug_* sections that readelf --debug-dump does a dwarf dump
of.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds


[Reproducible-builds] Bug#808267: diffoscope: Redundant information in ELF comparisons

2015-12-17 Thread Mike Hommey
On Fri, Dec 18, 2015 at 10:10:54AM +0900, Mike Hommey wrote:
> Source: diffoscope
> Version: 43
> Severity: normal
> 
> When comparing ELF files, the following commands are used:
> - readelf --all
> - readelf --debug-dump
> - objdump --disassemble --full-contents
> 
> objdump --disassemble --full-contents is actually redundant in itself. For
> example, it will dump both an hexdump and a disassembly of the .text section.
> It's also redundant with the output of readelf --debug-dump because it does an
> hexdump of the .debug_* sections that readelf --debug-dump does a dwarf dump
> of.

objdump --disassemble --full-contents also outputs a dump of e.g.
.note.gnu.build-id, which is printed out in nicer form in readelf --all.

Mike

___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds