PATCH for i386: --no-copy-relocs
Jose Luu
jluu@mainsoft.com
Fri Jun 22 06:33:00 GMT 2001
>
> 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
More information about the Binutils
mailing list