[PATCH] D52784: [ARM][AArch64] Pass through endianness flags to the GNU assembler and linker

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 15 11:15:39 PDT 2018


nickdesaulniers accepted this revision.
nickdesaulniers added a comment.
This revision is now accepted and ready to land.

Thanks for this patch.  With it I was able to link+boot a BE aarch64 Linux kernel (and a LE aarch64 Linux kernel).



================
Comment at: lib/Driver/ToolChains/Gnu.cpp:268
   case llvm::Triple::thumbeb:
-    return "armelfb_linux_eabi";
+    return (isArmBigEndian(T, Args)) ? "armelfb_linux_eabi"
+                                     : "armelf_linux_eabi";
----------------
probably don't need the parens around `isArmBigEndian(...)`.


https://reviews.llvm.org/D52784





More information about the cfe-commits mailing list