Many improvements to MIPS flags handling to make output consistent with GNU binutils readelf + typo (#165)
* Add EF_MIPS_PIC for E_FLAGS for statically linked MIPS-I executable produced by MUSL
pyelftools picked up CPIC but not PIC
binutils readelf says:
Flags: 0x1007, noreorder, pic, cpic, o32, mips1
pyelftools said (before this change):
Flags: 0x1007, noreorder, cpic, o32, mips1
Reproduce with the binary available at:
https://github.com/mzpqnxow/embedded-toolkit/blob/master/prebuilt_static_bins/gdbserver/gdbserver-6.8-mips-i-rtl819x-lexra
* Fix order of fix, was "cpic, pic" needs to be "pic, cpic", reordered the if statement to address this
* - Improve reporting on MIPS flags, fix many inconsistencies with GNU binutils
- Fix `desrciption` typo that raises fatal exception when encountering an unknown ABI
- Add E_FLAGS_MASKS constants to simplify ABI logic
* Add masks for E_FLAGS to simplify ABI logic