This change rewrites and splits reloc-types.test
to use yaml2obj instead of precompiled binaries.
That allowed to remove 7 precompiled objects from the inputs.
I took the existent objects, used obj2yaml on them, simplified the result and
used yaml2obj in the test case with the result.
Notes:
- I converted, but did not remove relocs.obj.elf-i386, relocs.obj.elf-x86_64 or relocs.obj.elf-mips objects
because found they are used in other tests. I think it is bad practice to spread using
the precompiled objects with no reason and would be better to convert those tests
to use yaml instead too. Going to do that.
- I was unable to convert relocs.obj.elf-ppc64, because obj2yaml hangs on this file for me.
I'll take a look.
- I was unable to convert relocs.obj.macho-arm, relocs.obj.macho-i386 and relocs.obj.macho-x86_64
because the output produced by obj2yaml does not seem to be correct. Or at least I was unable to
use it with yaml2obj to make the existent tests pass.
- Because of the above I did not remove the script for creating all of those objects: test\tools\llvm-readobj\Inputs\relocs.py
This file is monstrous. Do you feel it should be split by binary format or by target?