This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [compile] Relocate memcpy
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 24 Jan 2018 14:23:04 +0100
- Subject: Re: [compile] Relocate memcpy
- Authentication-results: sourceware.org; auth=none
- References: <868tcne98t.fsf@gmail.com>
On Wed, 24 Jan 2018 13:23:14 +0100, Yao Qi wrote:
> My understanding is some thing patches "bl memcpy" with the address told
> by gdb. I don't know the patching is done by libcc1 or something else.
gdb/compile/compile-object-load.c contains something like ld.so - it loads
object (.o) files and processes their relocations (rather bfd/ does that) to
copy them to mmap()ed areas. I was debugging it only on i686+x86_64.
Jan