[llvm-readelf/obj] - Handle out-of-order PT_LOADs better.
Specification says that
"Loadable segment entries in the program header table appear
in ascending order, sorted on the p_vaddr member."
Our toMappedAddr() relies on this condition. This patch
adds a warning when the sorting order of loadable segments is wrong.
In this case we force segments sorting and that allows
toMappedAddr() to work as expected.
Differential revision: https://reviews.llvm.org/D92641