home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!spool.mu.edu!darwin.sura.net!lhc!adm!news
- From: gml4410@ggr.co.uk (Lack Mr G M)
- Newsgroups: comp.sys.sgi.misc
- Subject: Does an Indigo make read-only text segments?
- Message-ID: <34959@adm.brl.mil>
- Date: 12 Jan 93 02:41:57 GMT
- Sender: news@adm.brl.mil
- Lines: 19
-
-
- Perhaps someone can answer this for me. If I write the following
- (note that I *wouldn't* write it except to highlight a problem!) in cc
- on an Indigo it will actually *execute* without raising an error!
-
- > strcpy("read-only", "zz01");
-
- The assembler output from the compiler shows that the "read-only" string
- is placed in the .rdata section (ie. it should be read-only data).
- However, I am allowed to gaily write over it.
-
- Why is the read-only attribute ignored????
-
- This is on an Indigo at Irix 4.0.1.
-
-
- -------------------------- Gordon Lack ----------------------------------
- The contents of this message *may* reflect my personal opinion. They are
- *not* intended to reflect those of my employer, or anyone else.
-