[PATCH] D28898: [ELF] - Allow emulation to be different from input objects target.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 24 13:44:20 PST 2017


> +  // If we have at least one archive, -m is ignored and we require
> +  // to have at least one ELF input file.
> +  bool HasArchive = llvm::find_if(Files, [](InputFile *F) {
> +                      return F->kind() == InputFile::ArchiveKind;
> +                    }) != Files.end();
> +  if (HasArchive) {
> +    error("target unknown: at least one ELF file required");

I don't think this is correct. You should wait until the end of symbol
resolution. Having an archive doesn't guarantee that a member is
fetched.

Have you found out *why* the kernel build system uses a mismatched -m?

Cheers,
Rafael


More information about the llvm-commits mailing list