[RTEMS Project] #2614: Native elf format in rtems-tools

RTEMS trac trac at rtems.org
Wed Feb 24 18:56:30 UTC 2016


#2614: Native elf format in rtems-tools
---------------------------+-------------------------
 Reporter:  linux.matthew  |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  4.11.1
Component:  General        |    Version:  4.11
 Severity:  normal         |   Keywords:  rtems-tools
---------------------------+-------------------------
 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";
          }

--
Ticket URL: <http://devel.rtems.org/ticket/2614>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list