diff options
author | Tobias Anderberg <tobias.anderberg@axis.com> | 2002-09-12 15:09:53 +0000 |
---|---|---|
committer | Tobias Anderberg <tobias.anderberg@axis.com> | 2002-09-12 15:09:53 +0000 |
commit | c2095caf3f72728ba827ecab2816d8399a5fc282 (patch) | |
tree | be917ef8f97c6c572b0f02e2a158f60cbe27cc66 /ldso | |
parent | 85328ff199631c076e39fadb0e9953b927a677e3 (diff) |
Support LD_DEBUG=all
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/ldso.c | 16 |
1 files changed, 11 insertions, 5 deletions
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; |