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 11 Dec 2006, 10:21
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: 8354
Location: Kraków, Poland
Tomasz Grysztar 11 Dec 2006, 11:26
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 16 Dec 2006, 07:04
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: 8354
Location: Kraków, Poland
Tomasz Grysztar 16 Dec 2006, 08:20
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.