PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.c > conversion ELF -> .EXE windows
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
conversion ELF -> .EXE windows

Réponse
 
LinkBack Outils de la discussion
Vieux 31/01/2008, 00h56   #1
christophe.4.news@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut conversion ELF -> .EXE windows

Hello,

Is there a free tool able to convert a *static* ELF executable (without
import table) into a Windows .EXE (PE) ?

Thanks.
  Réponse avec citation
Vieux 31/01/2008, 02h58   #2
santosh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: conversion ELF -> .EXE windows

christophe.4.news@gmail.com wrote:

> Hello,
>
> Is there a free tool able to convert a *static* ELF executable
> (without import table) into a Windows .EXE (PE) ?


This is the wrong group. Try comp.sources.wanted or a web search.

Hint: Try 'objcopy' under GNU based systems.

  Réponse avec citation
Vieux 31/01/2008, 03h10   #3
Walter Roberson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: conversion ELF -> .EXE windows

In article <fnr6c5$hdn$1@news.tamu.edu>, <christophe.4.news@gmail.com> wrote:

>Is there a free tool able to convert a *static* ELF executable (without
>import table) into a Windows .EXE (PE) ?


Ummm, like a Playstation executable file? If so then that
is a non-trivial task, as Playstation is MIPS CPU based,
and MIPS uses a completely different machine language than
Windows for Intel type chips.

In theory if you had code that was not self-modifying, you
could read an ELF file with MIPS code as if it were a type
of source code, and compile that code for Windows. Not many
programs do it that way, though: emulators are more common.
--
"Okay, buzzwords only. Two syllables, tops." -- Laurie Anderson
  Réponse avec citation
Vieux 31/01/2008, 17h58   #4
christophe.4.news@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: conversion ELF -> .EXE windows

Hello,

I've developped an application under Linux, that i want to port to
Windows (nothing to do with Playstation :-)). By the way, one can always
(build... and) use a cross compiler to do the job.
But it does not seem to be the more obvious solution ...

Also, i have tried objcopy, but there is no windows PE target :-(
Maybe there is a way to add it, i don't know ?

Thanks.
  Réponse avec citation
Vieux 31/01/2008, 21h59   #5
Walter Roberson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: conversion ELF -> .EXE windows

In article <fnt288$nd8$1@news.tamu.edu>, <christophe.4.news@gmail.com> wrote:

>I've developped an application under Linux, that i want to port to
>Windows (nothing to do with Playstation :-)). By the way, one can always
>(build... and) use a cross compiler to do the job.
>But it does not seem to be the more obvious solution ...


The operating systems calls are different between Linux and
Windows. It is not just a matter of extracting the machine code
from the ELF file and wrapping it into a .EXE file format:
the conversion program would have to detect each library call
and substitute a call to the appropriate Windows library.
You indicated earlier that the Linux binary was fully linked,
so everything in the Linux libc that it called upon would have
to be detected and converted to the appropriate Windows variation.
This is not always straight-forward: for example, the exact
parameters that you need to pass in Windows to create a network
socket are slightly different than what you need in Linux,
even though the routine name is the same and most of the parameters
are very close.

You may wish to load cygwin and MINGW onto the Windows box and use
it to recompile the Linux source.
--
"I will speculate that [...] applications [...] could actually see a
performance boost for most users by going dual-core [...] because it
is running the adware and spyware that [...] are otherwise slowing
down the single CPU that user has today" -- Herb Sutter
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h02.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15373 seconds with 13 queries