]> git.kaiwu.me - haproxy.git/commit
CLEANUP: sym: move symbol resolution out of tools.c
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 24 Sep 2026 15:26:03 +0000 (17:26 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 1 Oct 2026 15:06:31 +0000 (17:06 +0200)
commita355f5648b0b26dbbaf8288f1a72069efa1b25d0
treef06177bac1323b282691a13eca2064cc3ed805b7
parent078c6216915b1ff6b1a227d765d5c000e2760f85
CLEANUP: sym: move symbol resolution out of tools.c

Group symbol resolution and the shared dynamic-loader helpers in sym.c
before extending them with the in-process table: resolve_sym_name(),
the dladdr() and dlsym() wrappers, static-build detection, the executable
path, and the dlopen() interposer which verifies the loaded symbols
through the same helpers. Their declarations, and the backtrace helpers
that report the frames they resolve, move into a new sym.h which their
callers now include.
No functional change.
17 files changed:
Makefile
include/haproxy/sym.h [new file with mode: 0644]
include/haproxy/tools.h
src/activity.c
src/cfgparse-global.c
src/cli.c
src/debug.c
src/errors.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_spop.c
src/pool.c
src/ssl_sock.c
src/stream.c
src/sym.c [new file with mode: 0644]
src/tools.c