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/arc | |
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/arc')
-rw-r--r-- | ldso/ldso/arc/dl-debug.h | 83 | ||||
-rw-r--r-- | ldso/ldso/arc/elfinterp.c | 5 |
2 files changed, 0 insertions, 88 deletions
diff --git a/ldso/ldso/arc/dl-debug.h b/ldso/ldso/arc/dl-debug.h deleted file mode 100644 index 6573e5452..000000000 --- a/ldso/ldso/arc/dl-debug.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com) - * - * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball. - */ -static const char *_dl_reltypes_tab[] = -{ - "R_ARC_NONE", /* 0 */ - "R_ARC_8", - "R_ARC_16", - "R_ARC_24", - "R_ARC_32", - "R_ARC_B26", /* 5 */ - "R_ARC_B22_PCREL", - "R_ARC_H30", - "R_ARC_N8", - "R_ARC_N16", - "R_ARC_N24", /* 10 */ - "R_ARC_N32", - "R_ARC_SDA", - "R_ARC_SECTOFF", - "R_ARC_S21H_PCREL", - "R_ARC_S21W_PCREL", /* 15 */ - "R_ARC_S25H_PCREL", - "R_ARC_S25W_PCREL", - "R_ARC_SDA32", - "R_ARC_SDA_LDST", - "R_ARC_SDA_LDST1", /* 20 */ - "R_ARC_SDA_LDST2", - "R_ARC_SDA16_LD", - "R_ARC_SDA16_LD1", - "R_ARC_SDA16_LD2", - "R_ARC_S13_PCREL", /* 25 */ - "R_ARC_W", - "R_ARC_32_ME", - "R_ARC_N32_ME", - "R_ARC_SECTOFF_ME", - "R_ARC_SDA32_ME", /* 30 */ - "R_ARC_W_ME", - "R_ARC_H30_ME", - "R_ARC_SECTOFF_U8", - "R_ARC_SECTOFF_S9", - "R_AC_SECTOFF_U8", /* 35 */ - "R_AC_SECTOFF_U8_1", - "R_AC_SECTOFF_U8_2", - "R_AC_SECTOFF_S9", - "R_AC_SECTOFF_S9_1", - "R_AC_SECTOFF_S9_2", /* 40 */ - "R_ARC_SECTOFF_ME_1", - "R_ARC_SECTOFF_ME_2", - "R_ARC_SECTOFF_1", - "R_ARC_SECTOFF_2", - "", /* 45 */ - "", - "", - "", - "", - "R_ARC_PC32", /* 50 */ - "R_ARC_GOTPC32", - "R_ARC_PLT32", - "R_ARC_COPY", - "R_ARC_GLOB_DAT", - "R_ARC_JMP_SLOT", /* 55 */ - "R_ARC_RELATIVE", - "R_ARC_GOTOFF", - "R_ARC_GOTPC", - "R_ARC_GOT32", - "", /* 60 */ - "", - "", - "", - "", - "", /* 65 */ - "R_ARC_TLS_DTPMOD", - "R_ARC_TLS_DTPOFF", - "R_ARC_TLS_TPOFF", - "R_ARC_TLS_GD_GOT", - "R_ARC_TLS_GD_LD", /* 70 */ - "R_ARC_TLS_GD_CALL", - "R_ARC_TLS_IE_GOT", - "", - "", -}; diff --git a/ldso/ldso/arc/elfinterp.c b/ldso/ldso/arc/elfinterp.c index 2f0cf7f66..1b5b65115 100644 --- a/ldso/ldso/arc/elfinterp.c +++ b/ldso/ldso/arc/elfinterp.c @@ -262,13 +262,8 @@ static int _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope, if (unlikely(res != 0)) { if (res < 0) { int reloc_type = ELF_R_TYPE(rpnt->r_info); -#if defined __SUPPORT_LD_DEBUG__ - _dl_dprintf(2, "can't handle reloc type %s\n ", - _dl_reltypes(reloc_type)); -#else _dl_dprintf(2, "can't handle reloc type %x\n", reloc_type); -#endif _dl_exit(-res); } else { _dl_dprintf(2, "can't resolve symbol\n"); |