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

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Fri, 04 May 2012 16:03:16 -0000

#8520: runtime loader should check elf headers for things like architecture.
-----------------------------------+------------------------------
 Reporter:  kallisti5              |        Owner:  bonefish
     Type:  enhancement            |       Status:  new
 Priority:  normal                 |    Milestone:  R1/alpha4
Component:  System/runtime_loader  |      Version:  R1/Development
 Keywords:                         |   Blocked By:
 Blocking:                         |  Has a Patch:  0
 Platform:  All                    |
-----------------------------------+------------------------------
 Running a PowerPC BeOS binary under Haiku results in a generic failure
 message such as:

 * Could not find an application to open "XXX" (Invalid Argument)

 Enhanced checks on binaries would be a nice feature. Example:

 * Detecting running a binary for a non-compatible architecture.
 * Detecting running pre-BeOS R5 binaries?

 mmu mentioned adding B_BAD_IMAGE_ARCHITECTURE for arch failure checks and
 maybe B_BAD_IMAGE_PLATFORM.

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

Other related posts: