Article View: comp.sys.sgi.misc
Article #224Does an Indigo make read-only text segments?
From: Lack Mr G M
Date: Tue, 12 Jan 1993 02:41
Date: Tue, 12 Jan 1993 02:41
19 lines
1061 bytes
1061 bytes
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.
Technical Details
Message-ID:
<34959@adm.brl.mil>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!spool.mu.edu!darwin.sura.net!lhc!adm!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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