Quote:
Originally Posted by Manjunath1847
Here my question is will the binaries having debugging symbol increases the memory usage?.
|
No. For sure binary with debug information will take more disk space but not more RAM
Debug information is stored in the part of the executable files that never loaded in the RAM. When debugger need this info it take it from the file, not from the running process.
The only parts of the executable that are loaded in the RAM are PT_LOAD segments.
As simple test you can build same executable twice - with and without debug option and compare 'readelf -l your_executable' output.
PT_LOAD segment should be same