This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Specifying Segment Attributes


Hi Prasad,

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 ?

How about using memory regions ? If you decide that the shared memory will always start at a specific, high address you could create a MEMORY region to describe this, and then assign any sections in the input files that need to go into shared memory to this region.


Cheers
  Nick



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]