The new driver registers all the offloading entries by first storing a
structure containing the necessary information into a special section
and then iterating the section at runtime. This is done in ELF targets
using the linker defined __start and __stop sections. However for
COFF targets these are not provided. This is instead done by generating
sections as described here.
This patch adds the initial support required to offloadon COFF targets
by implementing this for the new driver. We use the .<kind>$Ox section
for COFF now.
Is this identical to the one above? Should the lines be shared with --check-prefix=COMMON,COFF etc? (The number of lines is rather small here so it's maybe not strictly necessary, but I saw that done in the other testcase.)