Add the --whole-archive flag when linking HIP programs to instruct lld
to go through every archive library to link in all the kernel functions
(entry pointers to the GPU program); otherwise, lld may skip some
library files if there are no more symbols that need to be resolved.
Change-Id: Ic7ea61ec3e6925f80a63d04654ac72177ffb27c8
Though not strictly required, it's usually better to end --whole-archive with a pairing --no-whole-archive.