Compare builds (ELF files) on two machines
I had to check if I can compile my source code on another machine using repository only.
The problem was that ELF files almost always differ (depend on time, path etc). The solutions was objdump and disassemble parameter.
I had the "original" elf file (manipulator-src.elf) and "new" one (manipulator.elf) compiled on other machine using repository only, so I've run:
objdump -d manipulator-src.elf > manipulator-src.dump objdump -d manipulator.elf > manipulator.dump
and then compare .dump files:
diff -u manipulator-src.dump manipulator.dump --- manipulator-src.dump Sat Dec 14 19:33:28 2013 +++ manipulator.dump Sat Dec 14 19:34:03 2013 @@ -1,5 +1,5 @@ -manipulator-src.elf: file format elf32-avr32 +manipulator.elf: file format elf32-avr32 Disassembly of section .reset:
as you can see only second line was different because of file name.
Komentarze
Log in or create a user account to comment.