]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: add functions to retrieve the address of a symbol
authorWilly Tarreau <w@1wt.eu>
Wed, 5 May 2021 07:06:21 +0000 (09:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 May 2021 14:24:52 +0000 (16:24 +0200)
commit64192392c45f40b2a4eb17900a6a638576e1fa67
tree86ea4c9dde662d093175765c041f063e7a3ac01f
parentd3a88c1c32ffebba09c6eab30f57cf33a56134a4
MINOR: tools: add functions to retrieve the address of a symbol

get_sym_curr_addr() will return the address of the first occurrence of
the given symbol while get_sym_next_addr() will return the address of
the next occurrence of the symbol. These ones return NULL on non-linux,
non-ELF, non-USE_DL.
include/haproxy/tools.h
src/tools.c