From c2095caf3f72728ba827ecab2816d8399a5fc282 Mon Sep 17 00:00:00 2001 From: Tobias Anderberg Date: Thu, 12 Sep 2002 15:09:53 +0000 Subject: Support LD_DEBUG=all --- ldso/ldso/ldso.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'ldso') diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c index 9ca8392e1..cec71ca56 100644 --- a/ldso/ldso/ldso.c +++ b/ldso/ldso/ldso.c @@ -805,11 +805,17 @@ static void _dl_get_ready_to_run(struct elf_resolve *tpnt, struct elf_resolve *a _dl_debug = _dl_getenv("LD_DEBUG", envp); if (_dl_debug) { - _dl_debug_detail = _dl_strstr(_dl_debug, "detail"); - _dl_debug_move = _dl_strstr(_dl_debug, "move"); - _dl_debug_symbols = _dl_strstr(_dl_debug, "sym"); - _dl_debug_reloc = _dl_strstr(_dl_debug, "reloc"); - _dl_debug_bindings = _dl_strstr(_dl_debug, "bind"); + if (_dl_strstr(_dl_debug, "all")) { + _dl_debug_detail = _dl_debug_move = _dl_debug_symbols + = _dl_debug_reloc = _dl_debug_bindings = _dl_strstr(_dl_debug, "all"); + } + else { + _dl_debug_detail = _dl_strstr(_dl_debug, "detail"); + _dl_debug_move = _dl_strstr(_dl_debug, "move"); + _dl_debug_symbols = _dl_strstr(_dl_debug, "sym"); + _dl_debug_reloc = _dl_strstr(_dl_debug, "reloc"); + _dl_debug_bindings = _dl_strstr(_dl_debug, "bind"); + } } { const char *dl_debug_output; -- cgit v1.2.3