public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: <peter.kourzanov@xs4all.nl>
To: binutils@sources.redhat.com
Subject: Re: objcopy --set-section-flags .data=alloc,load,data,share
Date: Thu, 11 Nov 2004 16:00:00 -0000	[thread overview]
Message-ID: <20041111160045.GR7593@altair.cygnus.nl> (raw)
In-Reply-To: <m33bzg5s37.fsf@gossamer.airs.com>

  Ian,

  I was suspecting this. Can you briefly explain what the "share"
section flag does in formats that support it? What I am trying to
achieve is a shared copy-on-write section, which I know I pretty
much impossible on standard UNIX but nevertheless... The idea is to
have the .data of one process be accessible from another process,
with copied-on-write pages notwithstanding. To do that, the kernel's
loader needs to distinguish these "copy-on-write shared" sections 
from normal ones, hence my question.

  Pjotr.


On Thu, Nov 11, 2004 at 10:21:48AM -0500, Ian Lance Taylor wrote:
> <peter.kourzanov@xs4all.nl> writes:
> 
> >   I've got a question about semantics of the "share" section flag
> > in objcopy. It seems not be documented anywhere and all links I
> > could google up refer to COFF binaries, with unexplained semantics
> > as well. Is there a possibility to mark a "shared" section in ELF,
> > so that OS's that need it can map the section as shared?
> 
> The "share" section flag can not be represented in ELF.
> 
> I'm not sure exactly what you mean by "map the section as shared," but
> the answer is probably no: there is no way to do that in ELF.  Note
> that typical ELF systems will automatically share read-only text
> segments.
> 
> Ian
> 

  reply	other threads:[~2004-11-11 16:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1100168375.22757.ezmlm@sources.redhat.com>
2004-11-11 10:26 ` peter.kourzanov
2004-11-11 15:22   ` Ian Lance Taylor
2004-11-11 16:00     ` peter.kourzanov [this message]
2004-11-11 16:22       ` Ian Lance Taylor
2004-11-11 16:40         ` peter.kourzanov
2004-11-11 19:38           ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041111160045.GR7593@altair.cygnus.nl \
    --to=peter.kourzanov@xs4all.nl \
    --cc=binutils@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).