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: dynamically written code problem


2) doing mmap (..., | PROT_EXEC, ...) is preferrable to allocating elsewhere
   and then mprotecting when using exec-shield - otherwise you lose
   execute protection for too many pages where it is not desirable

I don't have an exec-shield system, so I didn't research much on this. But on my system, mmap is allocating in the 0x40000000 range, and malloc is allocating at the brk (around 0x08000000). Is this different when exec-shield is activated?


Paolo


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