Closed orbitcowboy closed 3 years ago
Hi,
A linker output and a file created by ELFIO library may differ in their content layout. Therefore, binary comparison between the files is not valid.
A better way to compare the files is usage of function checkExeAreEqual() located in ELFIOTest1.cpp.
If you submit your binary file, I can add it to the test directory for regression testing.
Did you try to execute the files?
Also, please see #62
Hi @orbitcowboy,
May I mark you question as answered/closed already?
Also, please see #62 Thank you! This fully answered my question. I did also some verification locally with some µController elf files. Everything seems to work as it should. Many thanks for this very helpful library
I noticed that ELFIO produces inconsistent elf binaries in some cases. Here is a small test case: 1) Tweak elfdump sample to simply read an ELF file and then write a copy to another file:
2) Create a sample ELF file for testing:
3) Execute I/O test:
$ ./elfdump test.elf test1.elf
4) Expect that both ELF files are equal, but they are different: