After compiling and running a user code in uClinux ported BF537 how can I differentiate between code section and data section by seeing the memory of a user's process?
You may try "cat /proc/pid/status" and "cat /proc/pid/maps" to observe the memory info of a process.
Yeah...I've used that. But I wanna know explicitly about the data segment and code segment. I can get only total memory used and whatever memory locations the process occupied. Attached is a user's process's maps. Kindly tell me how to differentiate code section and data section. Or I've the source code of uClinux 2.6. So where can I find in that how kernel seperates the data section and code section. I've gone through the application binary interface docs in blackfin.uclinux site. I understand that a function descriptor would be assigned to relate data segment and code segment.
Sounds like you are more interested in section sizes for an executable, you may try "size" on PC, for example:
text data bss dec hex filename
4973 576 196 5745 1671 output/target/usr/bin/bmp2jpg
Yeah thanks for that.. I even wanted to know which areas of memory it occupied.
Retrieving data ...