flat assembler
Message board for the users of flat assembler.

Index > Linux > Porting from win32

Author
Thread Post new topic Reply to topic
Rahsennor



Joined: 07 Jul 2007
Posts: 61
Rahsennor
Hello. Smile
I am currently trying to port my fasm win32 projects to linux, but I'm not sure how to import from shared objects. Doing it with gcc etc. should be easy, but can I do it with just fasm?
Post 14 Aug 2008, 08:47
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 can't*, only "format ELF" is the way.

*Unless you write a raw binary with fasm so you can import shared libraries by hand.
Post 14 Aug 2008, 14:33
View user's profile Send private message Reply with quote
asmcoder



Joined: 02 Jun 2008
Posts: 784
asmcoder
[content deleted]


Last edited by asmcoder on 14 Aug 2009, 14:56; edited 1 time in total
Post 14 Aug 2008, 14:40
View user's profile Send private message Reply with quote
Rahsennor



Joined: 07 Jul 2007
Posts: 61
Rahsennor
That's what I thought, but my curiosity has the better of me.
How does manual importing actually work?
What makes it so much harder than for PE, that fasm can't do it itself? Question
Post 15 Aug 2008, 04:24
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17662
Location: In your JS exploiting you and your system
revolution
Rahsennor wrote:
What makes it so much harder than for PE, that fasm can't do it itself? Question
I doubt it is a matter of difficulty, but more a matter of need. Clearly it is not yet considered requested enough to warrant spending time to write the necessary code.

But I have a suggestion. You can help everyone that is in your situation with SOs. Write some code for the fasm formatter and/or macros (whatever is appropriate) to generate the SO data sections and then submit it here for Tomasz to consider including it in the standard download. Already some other pieces of fasm have been included in this way so it wouldn't be the first time.
Post 15 Aug 2008, 05:03
View user's profile Send private message Visit poster's website Reply with quote
Rahsennor



Joined: 07 Jul 2007
Posts: 61
Rahsennor
I need something useful to do... Very Happy
Anyone happen know where I can find more information on the ELF format?
Post 15 Aug 2008, 09:48
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17662
Location: In your JS exploiting you and your system
revolution
Rahsennor wrote:
Anyone happen know where I can find more information on the ELF format?
Have a look at my website, it has much useful information relating to your question above. Hehe, sorry, couldn't resist, don't take any offence.
Post 15 Aug 2008, 10:22
View user's profile Send private message Visit poster's website Reply with quote
Rahsennor



Joined: 07 Jul 2007
Posts: 61
Rahsennor
Laughing Laughing Laughing
I knew you'd say that. Google is good, real people are better. This could take a while. Razz
Post 15 Aug 2008, 12:16
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17662
Location: In your JS exploiting you and your system
revolution
Rahsennor wrote:
I knew you'd say that.
Hehe, I guess I am just too predictable, or you query was too obvious, or both.
Rahsennor wrote:
Google is good, real people are better.
Not always true. Depends upon what you are trying to achieve at the time.
Post 15 Aug 2008, 17:17
View user's profile Send private message Visit poster's website Reply with quote
Rahsennor



Joined: 07 Jul 2007
Posts: 61
Rahsennor
Well, I found a good documentation of the ELF format. I forgot the address, but I can post the PDF if anyone's interested.
It's not much use: ld is part of the specification. Whoever designed ELF couldn't decide on how to implement shared libraries, so they left it to the linker. There's no fixed standard. Evil or Very Mad
Post 16 Aug 2008, 00:33
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 GitHub, YouTube, Twitter.

Website powered by rwasa.