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

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Fri, 04 May 2012 18:14:40 -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
 Resolution:                         |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+----------------------------

Comment (by kallisti5):

 A little research:

 I *think* parse_elf_header would be an ideal place it looks like for the
 arch check.

 eheader->e_machine I *think* is the correct field to look at.

 A side note, parse_elf_header returns a failure if the elf is !=
 32-bits... that may cause issues in our x86_64 (or any non-32-bit) port.

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

Other related posts: