aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/dl-execstack.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2021-08-23 08:11:54 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-08-23 08:14:22 +0530
commitf2e33c3268db9adf8e57e991676ed0d5ac74e8a8 (patch)
tree8fc199103fff311829cb5ef8d18e81349295a506 /sysdeps/unix/sysv/linux/dl-execstack.c
parent78c9ec9000f873abe7a15a91b87080a2e4308260 (diff)
downloadglibc-f2e33c3268db9adf8e57e991676ed0d5ac74e8a8.tar
glibc-f2e33c3268db9adf8e57e991676ed0d5ac74e8a8.tar.gz
glibc-f2e33c3268db9adf8e57e991676ed0d5ac74e8a8.tar.bz2
glibc-f2e33c3268db9adf8e57e991676ed0d5ac74e8a8.zip
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: John Ogness <john.ogness@linutronix.de> Reviewed-by: Andreas Schwab <schwab@linux-m68k.org> Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/dl-execstack.c')
0 files changed, 0 insertions, 0 deletions