delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/18/13:29:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <4033AEE3.35875E0C@dessent.net>
Date: Wed, 18 Feb 2004 10:28:51 -0800
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Assembler
References: <AE2AA130827456459AA497E8C9D6EA00412C13 AT pauex2ku02 DOT agere DOT com> <c0vr3u$oqu$1 AT sea DOT gmane DOT org>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Krzysztof Duleba wrote:

> A translator that changes int 0x80 to function calls? It doesn't seem too
> difficult, but I probably miss something.

So write a perl script.  The list of syscalls is defined in the Linux
kernel in unistd.h:
<http://linux.bkbits.net:8080/linux-2.4/anno/include/asm-i386/unistd DOT h AT 1 DOT 8>

You may also want to read these pages:
<http://www.lxhp.in-berlin.de/lhpsyscal.html>

> The way I think is: if in Linux it is possible to translate function calls
> to int 0x80, one could build a funcion call -> int 0x80 dictionary. If the
> dictionary is complete (or at least big enough), having a int 0x80-like
> system call one can look up the corresponding funcion call.

I don't know what you're trying to do here but it sounds like it's not
going to work.  If you're trying to compile code written in assember
then you should have the source with symbolic calls and not raw
syscalls, otherwise the person writing the code was an idiot.  If you're
trying to decompile and port some random linux binary to run under
Cygwin, then I must conclude that you're nuts.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019