diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-11-06 16:33:29 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-11-06 16:33:29 +0000 |
commit | e5fc0ba9482cdecb303bc1d836d0d2695b9539ec (patch) | |
tree | b7588ff74329aea75c46aeb9024fc8989767daf0 | |
parent | c01cd02acbed0d0ef29666211bcc05951a14353a (diff) |
Fix up a compile error
-rw-r--r-- | ldso/ldso/powerpc/elfinterp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ldso/ldso/powerpc/elfinterp.c b/ldso/ldso/powerpc/elfinterp.c index 9a6700e01..adf95d63c 100644 --- a/ldso/ldso/powerpc/elfinterp.c +++ b/ldso/ldso/powerpc/elfinterp.c @@ -27,6 +27,7 @@ * SUCH DAMAGE. */ +/* FIXME -- Disable this when __SUPPORT_LD_DEBUG__ is undefined */ #if defined (__SUPPORT_LD_DEBUG__) static const char *_dl_reltypes[] = { "R_PPC_NONE", "R_PPC_ADDR32", "R_PPC_ADDR24", "R_PPC_ADDR16", @@ -151,9 +152,13 @@ unsigned long _dl_linux_resolver(struct elf_resolve *tpnt, int reloc_entry) //debug_reloc(this_reloc); if (reloc_type != R_PPC_JMP_SLOT) { - _dl_dprintf(2, "%s: Incorrect relocation type [%s] in jump relocations\n", +#if defined (__SUPPORT_LD_DEBUG__) + _dl_dprintf(2, "%s: Incorrect relocation type [%s] in jump relocation\n", _dl_progname, (reloc_type<N_RELTYPES)?_dl_reltypes[reloc_type]:"unknown"); +#else + _dl_dprintf(2, "%s: Incorrect relocation type in jump relocation\n", _dl_progname); +#endif _dl_exit(1); }; |