I'm happy enough with David's original approach, except that the patch ought to first check for a sparc object file. (bfd->xvec->flavour, elf_tdata(bfd)->elf_header->e_machine is one way of doing that.) -- Alan Modra Australia Development Lab, IBM