Re: libopcodes counterpart

From: wasatchRiver (wasatchRiver_at_comcast.net)
Date: 09/24/04


Date: 24 Sep 2004 09:47:16 -0700

Basically I am wanting to translate assembly into machine code and
then view it as shellcode without the extra overhead of fully
assembling the buffer (I am assuming that gas is a multi pass
assembler... but that may be a flawed assumption), but I don't want to
re-invent the wheel by rewriting an existing parser. I need multi
platform compatibility and the ability to parse either AT&T or IBM
assembly. I have been poking around in the source code for gas trying
to find the specific functions that parse the buffers and do the
encoding but so far I haven't found the function(s) that I am looking
for.

Currently I have the disassemble functionality working using the
various print_insn_* function calls from dis-asm.h.

I am trying to avoid writing the buffers out (to a file or a file
descriptor), assembling them, then reading them back in but, have
looked at it as a possible solution.



Relevant Pages

  • Re: Assembly code to Machine code without assembling
    ... >> Is anyone aware of a set of linux libraries that will translate ... >> aasembly to machine code without running it through the assmebler. ... >> the other way without actually assembling the file. ...
    (comp.lang.asm.x86)
  • Re: The Lib debate
    ... >>There are also contradictions between Libs and what i call ... of assembling several different modules into a single executable ... mnemonics into machine code on a 1:1 basis was "autocoder". ...
    (alt.lang.asm)
  • Re: Assembly code to Machine code without assembling
    ... > Is anyone aware of a set of linux libraries that will translate ... > aasembly to machine code without running it through the assmebler. ... > the other way without actually assembling the file. ...
    (comp.lang.asm.x86)
  • Assembly code to Machine code without assembling
    ... Is anyone aware of a set of linux libraries that will translate ... aasembly to machine code without running it through the assmebler. ... the other way without actually assembling the file. ...
    (comp.lang.asm.x86)