Strung Out

Stew Rubenstein stew at harvard.ARPA
Sun Mar 10 22:41:39 AEST 1985


> Strings were in a read-only program section in an early release
> (or perhaps field-test release) of VaxC for VMS.  I thought it
> was a good idea (I am a user, not a developer), but customers
> said "no: it breaks code."

> Martin Minow
> decvax!minow

I routinely do the necessary link-time magic to force the strings
psect to be readonly.  Something like
PSECT_ATTR = $CHAR_STRING_CONSTANTS, NoWrt
in your linker options file will do the trick.  Caught a few bugs
this way, I have.
-- 
-----------------------
Stew Rubenstein     UUCP: ihnp4!harvard!stew
Harvard Chemistry   ARPA: stew at harvard



More information about the Comp.lang.c mailing list