From e5ea45547e131ae842b7c79cd45b164470137367 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Sat, 27 Aug 2011 10:21:01 +0200 Subject: [PATCH] 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 --- linker/linker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linker/linker.c b/linker/linker.c index 00f36c07a..fdb798164 100644 --- a/linker/linker.c +++ b/linker/linker.c @@ -2039,8 +2039,8 @@ static int link_image(soinfo *si, unsigned wr_offset) */ if (program_is_setuid) nullify_closed_stdio (); - call_constructors(si); notify_gdb_of_load(si); + call_constructors(si); return 0; fail: