1 --- elf/dl-load.c 2011-01-26 22:02:02.000000000 +0100
2 +++ elf/dl-load.c 2011-01-26 22:30:22.000000000 +0100
4 if (__builtin_expect (p + s <= relro_end, 1))
6 /* The variable lies in the region protected by RELRO. */
7 - __mprotect ((void *) p, s, PROT_READ|PROT_WRITE);
8 + if (__mprotect ((void *) p, s, PROT_READ|PROT_WRITE) < 0)
10 + errstring = N_("cannot change memory protections");
11 + goto call_lose_errno;
13 __stack_prot |= PROT_READ|PROT_WRITE|PROT_EXEC;
14 __mprotect ((void *) p, s, PROT_READ);