GResource generation test incompatible with stable LLVM on Linux
ld -r -b binary and
objcopy --add-symbol in d04b9c37 for #1489 (closed) introduce dependencies on GNU ld and GNU binutils when building on Linux. The test, deciding whether to try resource linking, checks for just the Linux kernel presence, which is understandable but erroneous.
A compiler, when it calls ld, usually also passes an option for executable format,
-m elf_x86_64 or
-m armelf_linux_eabi for example. GNU ld determines a fallback value from the host system if you absolutely have to omit it, but LLD requires one to pass the option explicitly. Couldn't find out how to get the value in shell or Meson. Should it be made into a build option?
--add-symbol option is only present in the GNU version of
objcopy. LLD implemented its equivalent a week ago. Before the addition stabilises and makes it into a new LLVM release, what could be an alternative implementation of the GResource test? @NinjaKoala @pwithnall