[haiku-bugs] Re: [Haiku] #8520: runtime loader should check elf headers for things like architecture.

  • From: "landonf" <trac@xxxxxxxxxxxx>
  • Date: Fri, 23 Nov 2012 19:10:37 -0000

#8520: runtime loader should check elf headers for things like architecture.
-------------------------------------+----------------------------
   Reporter:  kallisti5              |      Owner:  bonefish
       Type:  enhancement            |     Status:  new
   Priority:  normal                 |  Milestone:  Unscheduled
  Component:  System/runtime_loader  |    Version:  R1/Development
 Resolution:                         |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  1                      |   Platform:  All
-------------------------------------+----------------------------
Changes (by landonf):

 * cc: landonf@â (added)


Comment:

 I needed to solve this issue as part of the FatELF work; I've cherry
 picked my specific patches to create a standalone issue branch here:

 https://github.com/landonf/haiku-fatelf/compare/haiku_issue_8520

 With this in place:

 {{{
 ~> cp /bin/ls ./ls-bad
 ~> elfedit --output-mach=x86_64 ls-bad
 ~> ./ls-bad
 bash: ./ls-bad: Executable not supported by this architecture
 }}}

 Feel free to cherry pick as desired, if desired.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8520#comment:15>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: