This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 08/15] PIE: Base functionality
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 11 Nov 2009 10:19:21 -0700
- Subject: Re: [patch 08/15] PIE: Base functionality
- References: <20091109205927.GI19138@host0.dyn.jankratochvil.net>
- Reply-to: tromey at redhat dot com
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> gdb/
Jan> * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
Jan> code part to ...
Jan> (svr4_static_exec_displacement): ... a new function.
Jan> (svr4_exec_displacement): New function.
Jan> (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
Jan> new_offsets using alloca now. Remove variable old_chain and changed.
Jan> Call objfile_relocate unconditionally now.
Jan> * symfile.c (syms_from_objfile): Relocate even MAINLINE objfiles.
Ok.
Tom