This is the mail archive of the binutils@sources.redhat.com 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]

Re: PATCH for i386: --no-copy-relocs


>
> A program compiled PIC normally does not require a reloc in the text
> segment.  So normally the COPY reloc is not needed in such a case.
>

Now I remember: that's why I did not see relocs in the text
segment, --no-copy-relocs is supposed to be used with -fPIC executables.

I have also tried my patch with non PIC main executables, it also works and
nothing complains.
I can only suppose that the pages are mapped "copy on write" (to allow for
self modifying code?).

Jose


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