[compile] Relocate memcpy

Jan Kratochvil jan.kratochvil@redhat.com
Wed Jan 24 13:23:00 GMT 2018


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



More information about the Gdb mailing list