lookup-asm-mips-elf.S: Support PIC.

This also improves the check for the ABI.