linker: allow debugging of constructors

This patch allows the debugging of constructors in shared
libraries and executables. It does so by ensuring that the
corresponding binary is visible to gdb before running the
constructors.

Change-Id: I0a3df726a04ad109944c834dcbba672b85d3991e
This commit is contained in:
David 'Digit' Turner 2011-08-27 10:21:01 +02:00
parent c57fd96381
commit e5ea45547e

View File

@ -2039,8 +2039,8 @@ static int link_image(soinfo *si, unsigned wr_offset)
*/ */
if (program_is_setuid) if (program_is_setuid)
nullify_closed_stdio (); nullify_closed_stdio ();
call_constructors(si);
notify_gdb_of_load(si); notify_gdb_of_load(si);
call_constructors(si);
return 0; return 0;
fail: fail: