understanding shared libraries using gcc

前端 未结 3 573
-上瘾入骨i
-上瘾入骨i 2021-02-11 00:17

I am trying to understand the following behavior of shared libraries in C

Machine One

$ cat one.c 
#include

         


        
3条回答
  •  日久生厌
    2021-02-11 00:25

    The number is the memory address where the library is loaded when the executable is run. It is determined at link time and is usually randomized in order to make library function addresses unpredictable and thus more difficult to use in exploits. The standard C library is linked by default by GCC. libcwait is probably another default library, possibly used by older GCC versions.

提交回复
热议问题