[RTEMS Project] #3616: [patch] rtems-tools - elftoolchain native elf detection broken on x86_64 machines

RTEMS trac trac at rtems.org
Fri Nov 23 16:23:37 UTC 2018


#3616: [patch] rtems-tools - elftoolchain native elf detection broken on x86_64
machines
-------------------------------------+-------------------------
 Reporter:  Christian Spindeldreier  |       Owner:  (none)
     Type:  defect                   |      Status:  new
 Priority:  high                     |   Milestone:  Indefinite
Component:  tool/rsb                 |     Version:  5
 Severity:  normal                   |  Resolution:
 Keywords:                           |  Blocked By:
 Blocking:                           |
-------------------------------------+-------------------------

Comment (by Christian Spindeldreier):

 **rtems-tools_fix-native-elf-detection-on-x86_64-machines.patch**

 {{{ #!diff
 From 6697c53638439a883097f7729746d9103c981a6a Mon Sep 17 00:00:00 2001
 From: Christian Spindeldreier <spindeldreier at ims.uni-hannover.de>
 Date: Fri, 23 Nov 2018 16:29:31 +0100
 Subject: [PATCH] fix native elf detection on x86_64 machines

 ---
  rtemstoolkit/elftoolchain/common/native-elf-format | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

 diff --git a/rtemstoolkit/elftoolchain/common/native-elf-format
 b/rtemstoolkit/elftoolchain/common/native-elf-format
 index 7ebaaa8..7a5ca5b 100755
 --- a/rtemstoolkit/elftoolchain/common/native-elf-format
 +++ b/rtemstoolkit/elftoolchain/common/native-elf-format
 @@ -39,7 +39,7 @@ $1 ~ "Machine:" {
              elfarch = "EM_386";
          } else if (match($0, "MIPS")) {
              elfarch = "EM_MIPS";
 -        } else if (match($0, ".*[xX]86-64")) {
 +        } else if (match($0, ".*[xX]86[-_]64")) {
              elfarch = "EM_X86_64";
          } else {
              elfarch = "unknown";
 --
 2.17.1

 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/3616#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list