Rearrange .plt.got in the dynamic array, name dl_runtime_resolve label and use explicit dynsym indecies to printf and exit in the PLT.