flat assembler
Message board for the users of flat assembler.
Index
> Linux > How to link libdl without using gcc (or ld) |
Author |
|
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! Ron (the project is Reva: http://ronware.org/reva.html ) |
|||
20 Feb 2005, 19:42 |
|
fasm9 21 Feb 2005, 01:54
in total 49 projects,
http://freshmeat.net/search/?q=elf§ion=projects&Go.x=0&Go.y=0 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! Thanks! |
|||
23 Feb 2005, 17:09 |
|
fasm9 24 Feb 2005, 06:33
http://planet.classpath.org/
Tom Tromey — Libc oops, thanks to him, gcj hacker. Quote: The dlmopen() function is identical to the dlopen() routine, dlmopen() -- maybe this? hope this help. PS: man prelink ftp://people.redhat.com/jakub/prelink/prelink-20041123.tar.bz2 |
|||
24 Feb 2005, 06:33 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.