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/c6x | |
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/c6x')
-rw-r--r-- | ldso/ldso/c6x/dl-debug.h | 49 | ||||
-rw-r--r-- | ldso/ldso/c6x/elfinterp.c | 4 |
2 files changed, 0 insertions, 53 deletions
diff --git a/ldso/ldso/c6x/dl-debug.h b/ldso/ldso/c6x/dl-debug.h deleted file mode 100644 index d4915bf21..000000000 --- a/ldso/ldso/c6x/dl-debug.h +++ /dev/null @@ -1,49 +0,0 @@ -/* C6X DSBT ELF shared library loader suppport. - * - * Copyright (C) 2010 Texas Instruments Incorporated - * Contributed by Mark Salter <msalter@redhat.com> - * - * All rights reserved. - * - * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. - */ - -static const char * const _dl_reltypes_tab[] = -{ - "R_C6000_NONE", /* 0 */ - "R_C6000_ABS32", - "R_C6000_ABS16", - "R_C6000_ABS8", - "R_C6000_PCR_S21", - "R_C6000_PCR_S12", /* 5 */ - "R_C6000_PCR_S10", - "R_C6000_PCR_S7", - "R_C6000_ABS_S16", - "R_C6000_ABS_L16", - "R_C6000_ABS_H16", /* 10 */ - "R_C6000_SBR_U15_B", - "R_C6000_SBR_U15_H", - "R_C6000_SBR_U15_W", - "R_C6000_SBR_S16", - "R_C6000_SBR_L16_B", /* 15 */ - "R_C6000_SBR_L16_H", - "R_C6000_SBR_L16_W", - "R_C6000_SBR_H16_B", - "R_C6000_SBR_H16_H", - "R_C6000_SBR_H16_W", /* 20 */ - "R_C6000_SBR_GOT_U15_W", - "R_C6000_SBR_GOT_L16_W", - "R_C6000_SBR_GOT_H16_W", - "R_C6000_DSBT_INDEX", - "R_C6000_PREL31", /* 25 */ - "R_C6000_COPY", - "R_C6000_JUMP_SLOT", - "R_C6000_SBR_GOT32", - "R_C6000_PCR_H16", - "R_C6000_PCR_L16", /* 30 */ -#if 0 - "R_C6000_ALIGN", /* 253 */ - "R_C6000_FPHEAD", /* 254 */ - "R_C6000_NOCMP", /* 255 */ -#endif -}; diff --git a/ldso/ldso/c6x/elfinterp.c b/ldso/ldso/c6x/elfinterp.c index f0e05b9d0..5e265edf4 100644 --- a/ldso/ldso/c6x/elfinterp.c +++ b/ldso/ldso/c6x/elfinterp.c @@ -130,11 +130,7 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope, 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 if (res >0) { _dl_dprintf(2, "can't resolve symbol\n"); |