Remove elf.StaticLibFile

elf.py: remove StaticLibFile; ArFile.compare_details() is much better

Remove the old code in the StaticLibFile class as it now duplicates the recursion in ArFile.compare_details() in a much inferior way. Fixes issue #64 (closed), see the multiple use cases there

test_elf.py: new elfmix.a test with a range of different file types

Now that StaticLibFile is out of the way, show off ArFile's recursive ability to:

  • not care about the .a suffix and not behave differently depending on filenames;
  • not crash and lose everything when some archive members are not ELF;
  • gracefully fall back and run the next best tool for a cross-compiled ELF and a sample of non-ELF members - including the corresponding .c source.

In addition to the .c source file, the regen_elfmix.sh script that generated the .a files is embedded in the .a files themselves if ever needed.

Merge request reports

Loading