This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Avoid mprotect in the IPA


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 (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]