Factor most of common logic between targets in build_got_entries by defining target specific info into structures in the backends.