Thread View: comp.sys.sgi.misc
1 messages
1 total messages
Started by Lack Mr G M
Tue, 12 Jan 1993 02:41
Does an Indigo make read-only text segments?
Author: 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads