summaryrefslogtreecommitdiff
path: root/ldso/ldso/nios2
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-12-27 09:34:40 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-01-14 18:31:49 +0100
commit43a672393627a4b21ebca5e9bf64f93b6ada7c25 (patch)
tree3ad66b1ae0d5d3d19176f8fdc2ac15df4f6b911b /ldso/ldso/nios2
parentae0bcade2ae104331974563c92fe62cf6ed7c975 (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/nios2')
-rw-r--r--ldso/ldso/nios2/dl-debug.h18
-rw-r--r--ldso/ldso/nios2/elfinterp.c5
2 files changed, 0 insertions, 23 deletions
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");