Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site harvard.ARPA
Path: utzoo!linus!philabs!cmcl2!seismo!harvard!stew
From: stew@harvard.ARPA (Stew Rubenstein)
Newsgroups: net.lang.c
Subject: Re: Strung Out
Message-ID: <456@harvard.ARPA>
Date: Sun, 10-Mar-85 07:41:39 EST
Article-I.D.: harvard.456
Posted: Sun Mar 10 07:41:39 1985
Date-Received: Tue, 12-Mar-85 20:31:04 EST
References: <8997@brl-tgr.ARPA> <52@decvax.UUCP>
Organization: Aiken Computation Laboratory, Harvard
Lines: 17

> 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@harvard