> '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? This message posted from opensolaris.org _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
