flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Chewy509 09 May 2008, 03:26
The dlopen(), dlysm() and dlclose() functions are the ones you're after if you are building an Executable ELF directly and wish to load *.so's at runtime (eg if you're using a plug-in architecture when you don't know in advance what *.so's you're linking to)...
http://www.opengroup.org/onlinepubs/009695399/functions/dlopen.html Or otherwise build you're asm file as an Object ELF file (and hence the extern is available), and link to the *.so's using either gcc or ld to create your executable. eg Code: > fasm myfile.asm myfile.o > gcc -lGL -lDSL -lm -o myfile myfile.o > ldd -r main libc.so.1 => /usr/lib/libc.so.1 libelf.so.1 => /usr/lib/libelf.so.1 libm.so => /usr/lib/libm.so libGL.so => /usr/X11R6/lib/libGL.so libSDL.so => /usr/lib/libSDL.so (The -lGL denotes to link to libGL.so)... |
|||
![]() |
|
Endre 09 May 2008, 07:34
links below may help you:
http://board.flatassembler.net/topic.php?t=7490 http://board.flatassembler.net/topic.php?t=8653 |
|||
![]() |
|
AMD64 10 May 2008, 15:30
Thank you for your help fellows.
I get it now. ![]() Just lately abandoned Windows and switched to Linux completely... time has come for it. Not going back. Ever ![]() Internal support for extrn + executable elf in fasm would be nice, but no problem... just wanted to hyper-optimize a little proggy ![]() Thanks again... and may the future be filled with penguins... ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.