Export die() as _rtld_die(), and use it in _mips_rtld_bind upon failure to resolve a symbol. Previously we would just crash.
Current:
root@erl:/nfs/erl/src/shlib # ./a.out
Segmentation fault (core dumped)
With patch:
root@erl:/nfs/erl/src/shlib # ./a.out
./liblib.so: Undefined symbol "missing_lib_fn"