PRU firmware file format is ELF for both the unofficial GNU PRU binutils port
and
TI's proprietary toolchain. Hence config.sub should default to ELF.
This change has been suggested during the PRU binutils port review:
https://sourceware.org/ml/binutils/2016-12/msg00237.html
Regards,
Dimitar
>From 7124ece9ffbcd27363413ad367ca6591eca302cb Mon Sep 17 00:00:00 2001
From: Dimitar Dimitrov <[email protected]>
Date: Thu, 15 Dec 2016 21:46:36 +0200
Subject: [PATCH] Force ELF format for PRU
* config.sub (pru, pru-*): Force ELF format.
* testsuite/config-sub.data: Update PRU test case.
Signed-off-by: Dimitar Dimitrov <[email protected]>
---
config.sub | 3 +++
testsuite/config-sub.data | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/config.sub b/config.sub
index 3478c1f..a2a0112 100755
--- a/config.sub
+++ b/config.sub
@@ -1638,6 +1638,9 @@ case $basic_machine in
sparc-* | *-sun)
os=-sunos4.1.1
;;
+ pru-*)
+ os=-elf
+ ;;
*-be)
os=-beos
;;
diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data
index a368047..0b1a5b9 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -365,7 +365,7 @@ ppcle-none-elf powerpcle-none-elf
ppcle powerpcle-unknown-none
ppc-none-elf powerpc-none-elf
ppc powerpc-unknown-none
-pru pru-unknown-none
+pru pru-unknown-elf
pru-elf pru-unknown-elf
pyramid pyramid-unknown-none
rdos32 i386-pc-rdos
--
2.10.2
_______________________________________________
config-patches mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/config-patches