sparc: fix the extraction of relocation IDs from r_type fields.