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/frv/dl-debug.h | 29 ----------------------------- ldso/ldso/frv/elfinterp.c | 4 ---- 2 files changed, 33 deletions(-) delete mode 100644 ldso/ldso/frv/dl-debug.h (limited to 'ldso/ldso/frv') diff --git a/ldso/ldso/frv/dl-debug.h b/ldso/ldso/frv/dl-debug.h deleted file mode 100644 index 65c2386fb..000000000 --- a/ldso/ldso/frv/dl-debug.h +++ /dev/null @@ -1,29 +0,0 @@ -/* FR-V FDPIC ELF shared library loader suppport - * Copyright (C) 2003, 2004 Red Hat, Inc. - * Contributed by Alexandre Oliva - * Lots of code copied from ../i386/elfinterp.c, so: - * Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald, - * David Engel, Hongjiu Lu and Mitch D'Souza - * Copyright (C) 2001-2002, Erik Andersen - * All rights reserved. - * - * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. - */ - -static const char * const _dl_reltypes_tab[] = -{ - [0] "R_FRV_NONE", "R_FRV_32", - [2] "R_FRV_LABEL16", "R_FRV_LABEL24", - [4] "R_FRV_LO16", "R_FRV_HI16", - [6] "R_FRV_GPREL12", "R_FRV_GPRELU12", - [8] "R_FRV_GPREL32", "R_FRV_GPRELHI", "R_FRV_GPRELLO", - [11] "R_FRV_GOT12", "R_FRV_GOTHI", "R_FRV_GOTLO", - [14] "R_FRV_FUNCDESC", - [15] "R_FRV_FUNCDESC_GOT12", "R_FRV_FUNCDESC_GOTHI", "R_FRV_FUNCDESC_GOTLO", - [18] "R_FRV_FUNCDESC_VALUE", "R_FRV_FUNCDESC_GOTOFF12", - [20] "R_FRV_FUNCDESC_GOTOFFHI", "R_FRV_FUNCDESC_GOTOFFLO", - [22] "R_FRV_GOTOFF12", "R_FRV_GOTOFFHI", "R_FRV_GOTOFFLO", -#if 0 - [200] "R_FRV_GNU_VTINHERIT", "R_FRV_GNU_VTENTRY" -#endif -}; diff --git a/ldso/ldso/frv/elfinterp.c b/ldso/ldso/frv/elfinterp.c index 2c954b3ab..96e22a94b 100644 --- a/ldso/ldso/frv/elfinterp.c +++ b/ldso/ldso/frv/elfinterp.c @@ -125,11 +125,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) -- cgit v1.2.3