This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Give a better error for PCH with exec-shield-randomize
On Thu, Mar 04, 2004 at 08:55:20PM -0500, Ian Lance Taylor wrote:
> On Linux, mincore() is evidently buggy, at least in 2.4.22.
Unfortunately, it's working as designed; man mincore sez
ENOMEM address to address + length contained unmapped memory,
or memory not part of a file.
Note the last clause. I suppose there's bits in the BUGS section
that acknowledge that you get ENOMEM for anonymous memory. I don't
quite know what to make of that. Perhaps this worked with a 2.2
kernel, and someone's vm redesign broke it. Who knows.
> Richard, do you have any insight into how expensive it would be to
> massively increase the BSS size of the cc1 process?
If memory overcommit protection is on, you'll have to really have
that muct free virtual memory to even start up cc1. Similarly
with your large allocation scheme. I can't see this as a viable
option.
I've asked our kernel folk for advice; we'll see what they come
up with.
r~