diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-27 09:34:40 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2017-01-14 18:31:49 +0100 |
commit | 43a672393627a4b21ebca5e9bf64f93b6ada7c25 (patch) | |
tree | 3ad66b1ae0d5d3d19176f8fdc2ac15df4f6b911b /ldso/ldso/dl-debug.c | |
parent | ae0bcade2ae104331974563c92fe62cf6ed7c975 (diff) |
ldso: do not resolve relocations for debug, dig them up when debugging
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'ldso/ldso/dl-debug.c')
-rw-r--r-- | ldso/ldso/dl-debug.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/ldso/ldso/dl-debug.c b/ldso/ldso/dl-debug.c index 88a48933c..4767e0723 100644 --- a/ldso/ldso/dl-debug.c +++ b/ldso/ldso/dl-debug.c @@ -1,4 +1,3 @@ -/* vi: set sw=4 ts=4: */ /* common debug code for ELF shared library loader * * Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald, @@ -41,22 +40,6 @@ #if defined (__SUPPORT_LD_DEBUG__) -/* include the arch-specific _dl_reltypes_tab */ -#include "dl-debug.h" - -static const char *_dl_reltypes(int type) -{ - static char buf[50]; - const char *str; - int tabsize; - - tabsize = (int)(sizeof(_dl_reltypes_tab) / sizeof(_dl_reltypes_tab[0])); - - if (type >= tabsize || (str = _dl_reltypes_tab[type]) == NULL) - str = _dl_simple_ltoa(buf, (unsigned long)type); - - return str; -} static void debug_sym(ElfW(Sym) *symtab, char *strtab, int symtab_index) { if (!_dl_debug_symbols || !symtab_index) @@ -89,8 +72,8 @@ static void debug_reloc(ElfW(Sym) *symtab, char *strtab, ELF_RELOC *rpnt) _dl_dprintf(_dl_debug_file, "\n%s\n\t", sym); } - _dl_dprintf(_dl_debug_file, "%s\toffset=%x", - _dl_reltypes(ELF_R_TYPE(rpnt->r_info)), + _dl_dprintf(_dl_debug_file, "%x\toffset=%x", + ELF_R_TYPE(rpnt->r_info), rpnt->r_offset); #ifdef ELF_USES_RELOCA _dl_dprintf(_dl_debug_file, "\taddend=%x", rpnt->r_addend); |