This patch adds support for a flag -fembed-offload-binary to embed a
file as an ELF section in the output by placing it in a global variable.
This can be used to bundle offloading files with the host binary so it
can be accessed by the linker. The section is named using the
-fembed-offload-section option.
Depends on D116541
This is unclear. List in what sense? It's a std::string, which suggests it's a freeform argument that gets parsed somewhere else.
The relation between the two strings is also unclear. Are the lists meant to be the same length, implying a one to one mapping? If there is a strong relation between the two we can probably remove a bunch of error handling by taking one argument instead of two.
Perhaps the variable should be something like a vector<pair<filename, section>>?