Re: Could DynAsm generated machine code be written to an ELF object?

  • From: Mike Pall <mike-1411@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 7 Nov 2014 13:06:53 +0100

Ryan Gonzalez wrote:
> The title says it all!

You could adapt the code from srv/jit/bcsave.lua, which writes ELF
objects (and others), but only the data portion. It's mostly about
getting all of the system-specific details right. Not so hard for
*.o files, but better leave generating a *.so or an executable to
the system linker.

--Mike

Other related posts: