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

  • From: Ryan Gonzalez <rymg19@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 7 Nov 2014 12:44:33 -0600

Yeah, I'm not adventurous enough to write a linker. I didn't realize that
file existed. Thanks!

On Fri, Nov 7, 2014 at 6:06 AM, Mike Pall <mike-1411@xxxxxxxxxx> wrote:

> 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
>
>


-- 
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple:
"It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was
nul-terminated."
Personal reality distortion fields are immune to contradictory evidence. -
srean
Check out my website: http://kirbyfan64.github.io/

Other related posts: