home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / 18703 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.0 KB

  1. Path: sparky!uunet!gatech!paladin.american.edu!darwin.sura.net!lhc!adm!news
  2. From: gml4410@ggr.co.uk (Lack Mr G M)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Does an Indigo make read-only text segments?
  5. Message-ID: <34958@adm.brl.mil>
  6. Date: 12 Jan 93 02:41:39 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 19
  9.  
  10.  
  11.      Perhaps  someone  can answer this for me.  If I write the following
  12. (note that I *wouldn't* write it except to highlight a problem!)  in  cc
  13. on an Indigo it will actually *execute* without raising an error! 
  14.  
  15. >   strcpy("read-only", "zz01");
  16.  
  17. The assembler output from the compiler shows that the "read-only" string
  18. is placed in the .rdata section (ie. it should be read-only data). 
  19. However, I am allowed to gaily write over it.  
  20.  
  21.      Why is the read-only attribute ignored????
  22.  
  23.      This is on an Indigo at Irix 4.0.1.
  24.  
  25.  
  26. -------------------------- Gordon Lack ----------------------------------
  27. The contents of this message *may* reflect my personal opinion.  They are
  28. *not* intended to reflect those of my employer, or anyone else.
  29.