summaryrefslogtreecommitdiff
path: root/elf/dl-debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-debug.c')
-rw-r--r--elf/dl-debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-debug.c b/elf/dl-debug.c
index bd6ee69189..39234720b0 100644
--- a/elf/dl-debug.c
+++ b/elf/dl-debug.c
@@ -34,7 +34,7 @@ struct r_debug *
internal_function
_dl_debug_initialize (ElfW(Addr) ldbase)
{
- if (_r_debug.r_brk == 0)
+ if (_r_debug.r_brk == 0 || ldbase != 0)
{
/* Tell the debugger where to find the map of loaded objects. */
_r_debug.r_version = 1 /* R_DEBUG_VERSION XXX */;