This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Specifying Segment Attributes
- From: Prasad Venkata Boddupalli <bprasad at CS dot Arizona dot EDU>
- To: binutils at sources dot redhat dot com
- Date: Mon, 29 Aug 2005 12:25:22 -0700 (MST)
- Subject: Specifying Segment Attributes
Hello,
I am writing a loader for a multi-threaded processor in which multiple
instances of an application run on different threads. Multiple
instances, besides their data segments mapped to a different physical
location also have a shared memory. The loader needs to recognize this
shared segment in the elf-executable. From the elf specification and the
linker script command language, I realized that one of the ways of
specifying the segment attribute as 'shared' is to use the 'PHDRS' command
and specify the attribute as part of the 'flags' of that segment.
Is there any other way as the use of PHDRS command will force one to
describe all segments ?
thanks,
Prasad.