link_elf_obj: Process global ifunc relocs after other global relocs
This is needed to ensure that resolvers that reference global symbols
return correct results.
Reviewed by: kib
Sponsored by: The FreeBSD Foundation
(cherry picked from commit b11e6fd75b1bb9d337b0edab14d160ff65b11aae)