Re: Writable global section?

From: Richard B. Johnson (
Date: Wed Oct 09 2002 - 08:08:44 EST

 When using shared libraries, is there a ".section" into which
 I can put a variable that's writable? I note that when programs
 that use shared libraries start, the pages are mprotect(ed)
 PROT_READ|PROT_EXEC, but sometimes I see PROT_WRITE on some
 I'd like to rip out a memory-mapped semiphore and put it directly
 in a shared library if possible.

Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
The US military has given us many words, FUBAR, SNAFU, now ENRON.
Yes, top management were graduates of West Point and Annapolis.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:30 EST