Dan Mick writes:
> James Carlson wrote:
> > Part of this is knowing some history.  Search around for odd terms
> > such as "block started by symbol."  :-/
> > 
> 
> although, really, that's overkill for understanding this problem; the 
> simple and complete answer is the C language definition.  Literal strings 
> are not guaranteed writable; trying to write them is generally considered a 
> bad idea.  exactly *how* they're made non-writable involves the linker, but 
> you don't need to understand the linker to understand that aspect of C.

That just leaves the issue up to spec-level mysticism.

Sure, you don't *have* to understand how any of this works.  I think,
though, that you're in a better place if you do look at some of it,
because it helps explain why there are platform differences and how
various sorts of references within shared libraries work.

It'll at least be handy later.

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to