This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: CFA: pseudo-reloc v2
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin-developers at cygwin dot com
- Date: Sat, 03 Oct 2009 19:30:55 +0100
- Subject: Re: CFA: pseudo-reloc v2
- References: <4AC7910E.1010900@cwilson.fastmail.fm>
Charles Wilson wrote:
[snip]
WAG:
> 120 void
> 121 _pei386_runtime_relocator ()
> 122 {
> 123 static int was_init = 0;
> 124 if (was_init)
> 125 return;
> 126 ++was_init;
> 127 do_pseudo_reloc (&__RUNTIME_PSEUDO_RELOC_LIST__,&__RUNTIME_PSEUDO_RELOC_LIST_END__,&_image_base__);
> 128 }
Maybe that static should be NO_COPY? If everything gets remapped in the
forkee, do the relocs need rerunning? (I'm not sure about the behaviour of
NtCreateProcess w.r.t modified .text section pages.)
cheers,
DaveK