* configure.tgt (sh*-*-netbsdelf*): Set endian according to cpu.
[deliverable/binutils-gdb.git] / gas / configure.tgt
index 777f798d4db84fa6dafebae421afbb59afede944..054f2b8b4a839089862603f6d7a3c2d65376d8cd 100644 (file)
@@ -353,7 +353,11 @@ case ${generic_target} in
     esac ;;
   sh5*-*-netbsd*)                      fmt=elf em=nbsd ;;
   sh64*-*-netbsd*)                     fmt=elf em=nbsd ;;
-  sh*-*-netbsdelf*)                    fmt=elf em=nbsd ;;
+  sh*-*-netbsdelf*)                    fmt=elf em=nbsd
+    case ${cpu} in
+      sh*l*)   endian=little ;;
+      *)       endian=big ;;
+    esac ;;
   sh*-*-symbianelf*)                   fmt=elf endian=little ;;
   sh-*-elf* | sh-*-uclinux* | sh[12]-*-uclinux*)       fmt=elf ;;
   sh-*-coff*)                          fmt=coff ;;
This page took 0.024642 seconds and 4 git commands to generate.