This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Avoid mprotect in the IPA
- From: Yao Qi <yao at codesourcery dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>
- Date: Wed, 18 Jan 2012 16:36:04 -0800
- Subject: Re: Avoid mprotect in the IPA
- References: <4F15B0E7.8080000@redhat.com>
On 01/17/2012 09:33 AM, Pedro Alves wrote:
> with mmap to begin with instead works, with a twist. Unlike for memalign,
> if we let it choose, the kernel likes to mmap memory at high addresses, which
> is way too far from the executable for fast tracepoint jumps to work on x86_64,
> so we need to look for low addresses with MAP_FIXED.
Yes, it is good that we can choose jump pad as close as possible to
executable on x86_64. This reduces the probability of appearance of
this bug, :)
Bug 13392 - JMP insn in jump pad is not correct when offset exceeds
integer limit
--
Yao (éå)