diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-21 14:24:54 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-21 14:24:54 +0000 |
commit | 0438ec7017676de27f908791f310037bf9143b82 (patch) | |
tree | 933f18aecf5d850a51e6f360feb8da35a6e56b72 /ldso/ldso/frv | |
parent | 00e04cb76f79f8cb50c23d0bca378b2b0b3f9f26 (diff) |
Guard debug_sym/debug_reloc, make sure elfinterp.c sees __SUPPORT_LD_DEBUG__
Diffstat (limited to 'ldso/ldso/frv')
-rw-r--r-- | ldso/ldso/frv/elfinterp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ldso/ldso/frv/elfinterp.c b/ldso/ldso/frv/elfinterp.c index cccf9b70c..b1e7f5ba0 100644 --- a/ldso/ldso/frv/elfinterp.c +++ b/ldso/ldso/frv/elfinterp.c @@ -24,7 +24,7 @@ License along with uClibc; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <sys/cdefs.h> /* __attribute_used__ */ +#include <features.h> /* Program to load an ELF binary on a linux system, and run it. References to symbols in sharable libraries can be resolved by either @@ -37,7 +37,7 @@ USA. */ a more than adequate job of explaining everything required to get this working. */ -struct funcdesc_value volatile *__attribute__((__visibility__("hidden"))) +struct funcdesc_value volatile attribute_hidden * _dl_linux_resolver (struct elf_resolve *tpnt, int reloc_entry) { int reloc_type; @@ -136,8 +136,11 @@ _dl_parse(struct elf_resolve *tpnt, struct dyn_elf *scope, int res; symtab_index = ELF32_R_SYM(rpnt->r_info); + +#if defined (__SUPPORT_LD_DEBUG__) debug_sym(symtab,strtab,symtab_index); debug_reloc(symtab,strtab,rpnt); +#endif res = reloc_fnc (tpnt, scope, rpnt, symtab, strtab); |