flat assembler
Message board for the users of flat assembler.

Index > Linux > ELF section

Author
Thread Post new topic Reply to topic
F45M



Joined: 22 Nov 2006
Posts: 16
F45M
I think ELF has only two flags for section declaration viz.
executable and writable (I know it from the docs came with Fasm).

Why we do not have readable flag as well ?
Is it because ELF have no support for readonly data ?

I may be wrong and newer versions of Fasm may allow additional flags.

help
Post 11 Dec 2006, 10:21
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7736
Location: Kraków, Poland
Tomasz Grysztar
Every ELF section is readable, there's no flag that specifies it.
The ELF executable segments have "readable" flag, however.
Post 11 Dec 2006, 11:26
View user's profile Send private message Visit poster's website Reply with quote
F45M



Joined: 22 Nov 2006
Posts: 16
F45M
So, can I ommit both executable and writable flags and thus have
a read-only section ?
Post 16 Dec 2006, 07:04
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7736
Location: Kraków, Poland
Tomasz Grysztar
That's right.
Post 16 Dec 2006, 08:20
View user's profile Send private message Visit poster's website 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.