girish writes: > > 'ptr' itself is allocated in the .data segment. However, the literal > string "adam" is stored in .rodata. > > Thanks, I managed to spot the constant string "adam" in the .rodata section > using dump -s :) > I have just started reading the Linker and Libraries Guide form docs.sun.com, > but I have only a vague idea about how the compiler generates the binary, elf > format etc. so I have a lot to learn... > > Any suggestion for a good book or online reference for learning more about > this topic?
It sounds like you're already reading a good one. Part of this is knowing some history. Search around for odd terms such as "block started by symbol." :-/ -- 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
