Message board for the users of flat assembler.
> Linux > How to link libdl without using gcc (or ld)
ronware 20 Feb 2005, 19:42
Hi all -
In my application, I want to be able to dynamically link in .so libraries. But I do not want the overhead (and dependancies) of using gcc/ld. My app is purely FASM.
So my question is, is there some way to insert the required information in the ELF file so that the OS loader maps libdl into my process space without me being required to us ld etc.?
There does not appear to be a Linux syscall for dlopen()... otherwise I would simply do that.
Thanks for your help!
(the project is Reva: http://ronware.org/reva.html )
|20 Feb 2005, 19:42||
fasm9 21 Feb 2005, 01:54
in total 49 projects,
tinlink, libelf, ELFIO, libmiASMaELF, The ELF shell, Assembly Language Debugger, elfcmp, The Linux Virus Writing HOWTO.
|21 Feb 2005, 01:54||
ronware 23 Feb 2005, 17:09
Well, it's possible if you manually create the ELF header and link in the correct stuff. See the http://www.muppetlabs.com/~breadbox/software/elfkickers.html ELF-kickers, particularly the 'factor' program which shows how to do what I want.
Privalov, is it possible to get support in FASM/Linux for this, just like in Windows?
For example, allowing an 'import' macro which imports specific functions. This would be much cleaner (from the enduser standpoint) than manually coding an ELF header!
|23 Feb 2005, 17:09||
fasm9 24 Feb 2005, 06:33
Tom Tromey â€” Libc oops, thanks to him, gcj hacker.
The dlmopen() function is identical to the dlopen() routine,
maybe this? hope this help.
PS: man prelink
|24 Feb 2005, 06:33||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.