Skip to content
Commit f2e33c32 authored by Siddhesh Poyarekar's avatar Siddhesh Poyarekar
Browse files

mtrace: Fix output with PIE and ASLR [BZ #22716]



Record only the relative address of the caller in mtrace file.  Use
LD_TRACE_PRELINKING to get the executable as well as binary vs
executable load offsets so that we may compute a base to add to the
relative address in the mtrace file.  This allows us to get a valid
address to pass to addr2line in all cases.

Fixes BZ #22716.

Co-authored-by: default avatarJohn Ogness <john.ogness@linutronix.de>
Reviewed-by: default avatarAndreas Schwab <schwab@linux-m68k.org>
Reviewed-by: default avatarDJ Delorie <dj@redhat.com>
parent 78c9ec90
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment