printMipsOptions() and the test related has the following issues currently:
- It does not check the value of Elf_Mips_Options<ELFT>::size field.
- For ODK_REGINFO options it is possible to read past the end of buffer, because there is no check against the sizeof(Elf_Mips_RegInfo<ELFT>).
- The error about the broken size is just printed to the standard output.
- The binary input is used for the test.
- There is no testing for multiple options in the .MIPS.options section, though the code supports it.
- Only llvm-readobj is tested, but not llvm-readelf.
- "Unsupported MIPS options tag" message does not reveal the tag ID.
This patch fixes all of these points.
for a one -> for one