]> git.ipfire.org Git - thirdparty/hostap.git/commit
trace: Look up start to cope with ASLR
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 27 Feb 2017 23:04:14 +0000 (00:04 +0100)
committerJouni Malinen <j@w1.fi>
Tue, 28 Feb 2017 09:37:19 +0000 (11:37 +0200)
commit51183198315e74001770e65a357fbc0f0164bc6d
tree301c85638d096dca2e1396efffee79bcf0aef670
parent069daec4eef380a22e34c203a1eb0c93060f826c
trace: Look up start to cope with ASLR

When ASLR is enabled, like it is by default on many distros now,
the trace code doesn't work right.

Fix this by looking up the start of the executable mapping and
subtracing it from all the lookups.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
src/utils/trace.c