compare_modules in dwfl_module.c returns the result of a 64 bit subtraction. However, compare_modules is the compare function for qsort and can only return an int. Thus the high-order bits can get chopped and the comparison can be wrong.
Fixed in frysk tree in dwfl_module.c 1.2
*** Bug 9898 has been marked as a duplicate of this bug. ***