Difference between shared binary and non-shared binary on Linux

Can someone explain to me what the actual difference between shared and non-shared binary is in Linux?

After a small amount of search queries, I found that non-shared binaries contain debugging information and deleted binaries.

+8
linux binary
source share
1 answer

Although you found your answer from Google. By simply placing this, non-shared binaries have debugging information built into it. Therefore, if you compile an executable with the gcc -g flag, it contains debugging information. While Strip binaries usually remove this debugging information from exe that is not necessary to execute in order to reduce the size of the EXE.

+5
source share

All Articles