flat assembler
Message board for the users of flat assembler.

Index > Linux > Creating .o files in FASM

Author
Thread Post new topic Reply to topic
andreism



Joined: 10 Feb 2007
Posts: 9
Location: Russia, Moscow
andreism
Hello,

I'm new to FASM and unfortunately there's not so much documentation on the net about it, like for many other *ASM-es. I have one question: am I right that there's no way to create an object (*.o) file in FASM?
Post 10 Feb 2007, 13:41
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
No, you are fortunatelly wrong Very Happy. Look at the ELFOBJ example inside the FASM for Linux package ( http://flatassembler.net/fasm-1.67.tgz )
Post 10 Feb 2007, 14:09
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc
It can be done pretty easily:

1. format elf
2. public symbol (for each symbol you wish to make visible to other *.o files)
3. extrn symbol (for each symbol you wish to use from another *.o file)

If you want to create a shared library (*.so), see http://board.flatassembler.net/topic.php?t=4964
Post 10 Feb 2007, 14:12
View user's profile Send private message Visit poster's website Reply with quote
andreism



Joined: 10 Feb 2007
Posts: 9
Location: Russia, Moscow
andreism
Thank you, guys, your help can't be counted in money Very Happy
Post 10 Feb 2007, 14:41
View user's profile Send private message 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.