Home / Community / Blog

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.

Just my blog...

Mon Tue Wed Thu Fri Sat Sun
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31