From 43a672393627a4b21ebca5e9bf64f93b6ada7c25 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 27 Dec 2016 09:34:40 +0100 Subject: ldso: do not resolve relocations for debug, dig them up when debugging Signed-off-by: Waldemar Brodkorb --- ldso/ldso/nios2/dl-debug.h | 18 ------------------ ldso/ldso/nios2/elfinterp.c | 5 ----- 2 files changed, 23 deletions(-) delete mode 100644 ldso/ldso/nios2/dl-debug.h (limited to 'ldso/ldso/nios2') diff --git a/ldso/ldso/nios2/dl-debug.h b/ldso/ldso/nios2/dl-debug.h deleted file mode 100644 index 1fb596ae3..000000000 --- a/ldso/ldso/nios2/dl-debug.h +++ /dev/null @@ -1,18 +0,0 @@ -/* nios2 shared library loader suppport */ - -static const char * const _dl_reltypes_tab[] = - { - "R_NIOS2_NONE", - "R_NIOS2_BFD_RELOC_32", - "R_NIOS2_BFD_RELOC_16", - "R_NIOS2_BFD_RELOC_8", - "R_NIOS2_GNU_VTINHERIT", - "R_NIOS2_GNU_VTENTRY", - "R_NIOS2_GOT16", - "R_NIOS2_CALL16", - "R_NIOS2_JUMP_SLOT", - "R_NIOS2_GLOB_DAT", - "R_NIOS2_RELATIVE", - "R_NIOS2_GOTOFF", - "R_NIOS2_COPY", - }; diff --git a/ldso/ldso/nios2/elfinterp.c b/ldso/ldso/nios2/elfinterp.c index bdbaa3383..bb742d4f4 100644 --- a/ldso/ldso/nios2/elfinterp.c +++ b/ldso/ldso/nios2/elfinterp.c @@ -123,13 +123,8 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope, if (unlikely(res < 0)) { int reloc_type = ELF_R_TYPE(rpnt->r_info); - _dl_dprintf(2, "can't handle reloc type " -#if defined (__SUPPORT_LD_DEBUG__) - "%s\n", _dl_reltypes(reloc_type)); -#else "%x\n", reloc_type); -#endif _dl_exit(-res); } else if (unlikely(res > 0)) { _dl_dprintf(2, "can't resolve symbol\n"); -- cgit v1.2.3