Hello,
error Unsupported relocation against PIR or r4 is caused by incorrect syntax. If you use inline assembler and GPR registers, you have to use following syntax:
asm("e_li %r0, 0");
There must be character % near the SPR register name.
Hope it helps.
Regards,
Martin