flat assembler
Message board for the users of flat assembler.

Index > Linux > Please help: LD and .so's ...

Author
Thread Post new topic Reply to topic
james



Joined: 07 Sep 2005
Posts: 45
Location: Australia
james 02 Jun 2006, 02:43
Im asking this question here as I just can't seem to find the answers elsewhere or they are buried so deep in C/C++ related issues I just simply can't sift through them ...

Im writing a a library in assembly using Gnu AS on linux.
Im having a little trouble makeing an .so and also, linking to that .so from
another program (also assembler).

Would some have and example or point me to one that is rather simple?
Even if its just a hello world function in a .so being called from another
prog ?

rgs, James.
Post 02 Jun 2006, 02:43
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 08 Jun 2006, 23:31
Sorry for the long wait... here is an example of shared object and two ways of using it.

The library will be installed into /usr/lib but you can change it from the makefile.


Description: Example of creation and use of .so libraries
Download
Filename: fasm_dl_example.tar.gz
Filesize: 1.79 KB
Downloaded: 777 Time(s)

Post 08 Jun 2006, 23:31
View user's profile Send private message Yahoo Messenger Reply with quote
Quantum



Joined: 24 Jun 2005
Posts: 122
Quantum 09 Jun 2006, 01:41
2 pelaillo:
Your SO isn't position-independent (PIC compliant). That's not good.
Post 09 Jun 2006, 01:41
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 09 Jun 2006, 08:48
Look here for some info on making PIC modules:
http://board.flatassembler.net/topic.php?t=4964
Post 09 Jun 2006, 08:48
View user's profile Send private message Visit poster's website Reply with quote
Nikolay Petrov



Joined: 22 Apr 2004
Posts: 101
Location: Bulgaria
Nikolay Petrov 18 Dec 2006, 10:54
The post is old, but i think that next example will be useful for someone.


Description:
Download
Filename: dlexample.tar.gz
Filesize: 2.39 KB
Downloaded: 762 Time(s)


_________________
regards
Post 18 Dec 2006, 10:54
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 18 Dec 2006, 11:27
shouldn't this be moved to HLL and highlighted?
Post 18 Dec 2006, 11:27
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.