got
Command got
Display the current state of GOT table of the running process.
The got
command optionally takes function names and filters the output displaying only the
matching functions.
gef➤ got [--all] [filters]
--all
Print the GOT for all shared objects in addition to the executable file
The applied filter partially matches the name of the functions, so you can do something like this.
gef➤ got str
gef➤ got print
gef➤ got read
Example of multiple partial filters:
gef➤ got str get
gef➤ got --all str get
Print relocatable symbols matching "str" or "get" in the executable and all shared object files.
Note: Because gdbserver does not canonicalize paths, the --all option does not work correctly for remote debugging. See gdb bug 23764