ET_EXEC and ET_DYN files may contain non-SHF_ALLOC relocation sections
(e.g. ld --emit-relocs). Match GNU objdump by dumping them.
- Remove Object/dynamic-reloc.test. Replace it with a -r RUN line in dynamic-relocs.test
- Update relocations-in-nonreloc.test to set sh_link/sh_info. GNU objdump seems to ignore a SHT_REL/SHT_RELA section not linking to SHT_SYMTAB. The test did not test what it intended to test.
Nits: 1) you've only got one YAML block, so you don't need the --docnum option. 2) If the third case is just to sanity check the dumping matches, you should consider adding an additional comment to note this.