Executable shared libraries

后端 未结 3 1285
后悔当初
后悔当初 2021-01-03 02:58

Most of the time, when you compile a shared library, executing it is meaningless and doing so produces nothing useful:

$ ./libfoobarbaz.so
Segmentation fault         


        
3条回答
  •  难免孤独
    2021-01-03 03:20

    The answer lies in the name "Executable and Linking Format". The same file format is used for both executables and libraries.

提交回复
热议问题