I had occasion to re-install P9P on the YeeLoong (Lemote netbook, <www.lemote.com>) and the only changes I needed were the addition of a getcallerpc-mips.c (or equivalent, see below) and the adjustments of src/mkhdr and the related dist/buildmk.
Took me a long time to note the comment at the beginning of mkhdr and that meant a lot of hunting for the wrong problem. Back to getcallerpc(), I have no idea how to express the -32 and -64 versions in gas (I can't find any documentation on GAS' version of the MIPS instruction set and I have serious trouble with va's too :-( nor am I convinced that I'd be using the right one if I could build it, I need to figure out things with GCC and the choice of wordsize. All very mysterious... ++L