Function ML_(find_rx_mapping)() expects 'lo' and 'hi' addresses. However get_elf_symbol_info() passes the following to it: ML_(find_rx_mapping)(di, (*sym_avmas_out).main, // lo (*sym_avmas_out).main + *sym_size_out); // hi Causing the debuginfo reader assert horribly when the last symbol ends precisely on the text segment end. I was able to reproduce this problem under special circumstances on sparcv9/Solaris platform, however it is generic. All other ML_(find_rx_mapping)() call sites account for 'lo'/'hi' argument semantics.
Created attachment 103726 [details] proposed patch
Fixed in SVN r16216.