ARM: Rewrite elf_machine_dynamic in pure C.