diff options
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); |