This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Why is a const array pointer with -fPIC mapped in ".data"?


On May 17, 2004, Richard Earnshaw <Richard.Earnshaw@arm.com> wrote:

> If you really want your PIC data tables to be read-only, don't put
> pointers in them.

Or use Jakub's recent patches that annotate portions of the data
segment as read-only-after-relocation, and use a dynamic loader that
uses the annotations and plays, erhm, page protection dances :-)

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


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