flat assembler
Message board for the users of flat assembler.

Index > Linux > [fasmg] Position indepent executables and import64.inc file

Author
Thread Post new topic Reply to topic
Jessé



Joined: 03 May 2025
Posts: 44
Jessé 11 May 2025, 21:02
Hello everyone,

I'm trying to convert the included import64.inc to try generate files when using 'format ELF64 dynamic 3', but with no success.

Is there a simple way to do this?

Or it needs to be entirely rebuilt to support making of position independent executables with import functions and needed libraries?

My goal is what it already does with fixed address executables: tiny size, with the minimum requirements and fields to make it executable and no external linker to build the final binary. In other words, a loooot of control on the final ELF executable!

I also have a question about how to control de dynamic address range used when compiling dynamic: because, with fasmg, it generates executables mapped at 0x7xxx:xxxxxxxx address; but, with other compilers, including C compilers, the address range lies between 0x5xxx:xxxxxxx and 0x6xxx:xxxxxxxx range.

_________________
jesse6
Post 11 May 2025, 21:02
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.