flat assembler
Message board for the users of flat assembler.

Index > Linux > Linux shared objects (.so)

Author
Thread Post new topic Reply to topic
jvff



Joined: 05 Jul 2005
Posts: 5
Location: Brazil
jvff 29 Aug 2005, 16:25
Hello,

I guess this is a very basic question but how do you make FASM output .so shared objects? And how can you import functions from other shared objects? Thank you,

JVFF
Post 29 Aug 2005, 16:25
View user's profile Send private message MSN Messenger Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 29 Aug 2005, 18:33
Use format ELF with at least one executable section and export the symbols by means of public directive.

To import any symbol, load the shared object with dlopen and then use dlsym to obtain the pointer to the symbol required. For most system libraries, symbols are already resolved by the loader.
Post 29 Aug 2005, 18:33
View user's profile Send private message Yahoo Messenger Reply with quote
james



Joined: 07 Sep 2005
Posts: 45
Location: Australia
james 07 Sep 2005, 09:14
Im new here and I registered as I wanted to do linux assembly and specifically .SO's

Do you have an example of a basic .SO that could be built with FASM ?

Rgs, james
Post 07 Sep 2005, 09:14
View user's profile Send private message MSN Messenger Reply with quote
james



Joined: 07 Sep 2005
Posts: 45
Location: Australia
james 13 Sep 2005, 10:05
Anyone got an example ?
Post 13 Sep 2005, 10:05
View user's profile Send private message MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.