#2614 assigned enhancement

Native elf format in rtems-tools

Reported by: linux.matthew Owned by: Needs Funding
Priority: normal Milestone: Indefinite
Component: unspecified Version: 4.11
Severity: normal Keywords: rtems-tools
Cc: Blocked By:


Is there any reason not to be able to build the rtems-tools natively on a non-x86 system? I tried on my raspberry pi2 (running centos) and it bailed because rtemstoolkit/elftoolchain/common/native-elf-format only handles x86 and x64. Seems a bit odd, a simple patch could fix it, but i wanted to know if there was another reason.

diff --git a/rtemstoolkit/elftoolchain/common/native-elf-format b/rtemstoolkit/elftoolchain/common/native-elf-format
index af70759..57af285 100755
--- a/rtemstoolkit/elftoolchain/common/native-elf-format
+++ b/rtemstoolkit/elftoolchain/common/native-elf-format
@@ -35,6 +35,8 @@ $1 ~ "Machine:" {

elfarch = "EM_386";

} else if (match($0, ".*X86-64")) {

elfarch = "EM_X86_64";

+ } else if (match($0, ".*ARM")) {
+ elfarch = "EM_ARM";

} else {

elfarch = "unknown";


Change History (3)

comment:1 Changed on Feb 24, 2016 at 9:03:47 PM by Chris Johns

There is no reason. The ELF support is a custom build of the project for our cross development work.

Could you please provide a patch for the master and 4.11 branches to this ticket and I will apply them? Thanks.

comment:2 Changed on Jan 26, 2017 at 7:16:00 AM by Sebastian Huber


comment:3 Changed on Feb 15, 2017 at 1:37:51 PM by Sebastian Huber

Milestone: 4.11.2Indefinite
Owner: set to Needs Funding
Status: newassigned
Note: See TracTickets for help on using tickets.