{
switch (rtype)
{
- case R_386_NONE: return "R_386_NONE";
- case R_386_32: return "R_386_32";
- case R_386_PC32: return "R_386_PC32";
- case R_386_GOT32: return "R_386_GOT32";
- case R_386_PLT32: return "R_386_PLT32";
- case R_386_COPY: return "R_386_COPY";
+ case R_386_NONE: return "R_386_NONE";
+ case R_386_32: return "R_386_32";
+ case R_386_PC32: return "R_386_PC32";
+ case R_386_GOT32: return "R_386_GOT32";
+ case R_386_PLT32: return "R_386_PLT32";
+ case R_386_COPY: return "R_386_COPY";
case R_386_GLOB_DAT: return "R_386_GLOB_DAT";
case R_386_JMP_SLOT: return "R_386_JMP_SLOT";
case R_386_RELATIVE: return "R_386_RELATIVE";
- case R_386_GOTOFF: return "R_386_GOTOFF";
- case R_386_GOTPC: return "R_386_GOTPC";
- case R_386_16: return "R_386_16";
- case R_386_PC16: return "R_386_PC16";
- case R_386_PC8: return "R_386_PC8";
- default: return _("*INVALID*");
+ case R_386_GOTOFF: return "R_386_GOTOFF";
+ case R_386_GOTPC: return "R_386_GOTPC";
+ case R_386_16: return "R_386_16";
+ case R_386_PC16: return "R_386_PC16";
+ case R_386_PC8: return "R_386_PC8";
+ default: return NULL;
}
}
case R_68K_GLOB_DAT: return "R_68K_GLOB_DAT";
case R_68K_JMP_SLOT: return "R_68K_JMP_SLOT";
case R_68K_RELATIVE: return "R_68K_RELATIVE";
- default: return _("*INVALID*");
+ default: return NULL;
}
}
case R_SPARC_REGISTER: return "R_SPARC_REGISTER";
case R_SPARC_UA64: return "R_SPARC_UA64";
case R_SPARC_UA16: return "R_SPARC_UA16";
- default: return _("*INVALID*");
+ default: return NULL;
}
}
case R_M32R_HI16_SLO: return "R_M32R_HI16_SLO";
case R_M32R_LO16: return "R_M32R_LO16";
case R_M32R_SDA16: return "R_M32R_SDA16";
- default: return _("*INVALID*");
+ default: return NULL;
}
}
case R_V850_CALLT_6_7_OFFSET: return "R_V850_CALLT_6_7_OFFSET";
case R_V850_CALLT_16_16_OFFSET: return "R_V850_CALLT_16_16_OFFSET";
/* end-sanitize-v850e */
- default: return _("*INVALID*");
+ default: return NULL;
}
}
case R_D10V_18: return "R_D10V_18";
case R_D10V_18_PCREL: return "R_D10V_18_PCREL";
case R_D10V_32: return "R_D10V_32";
- default: return _("*INVALID*");
+ default: return NULL;
}
}
case R_D30V_32: return "R_D30V_32";
case R_D30V_32_PCREL: return "R_D30V_32_PCREL";
case R_D30V_32_NORMAL: return "R_D30V_32_NORMAL";
- default: return _("*INVALID*");
+ default: return NULL;
}
}
case R_SH_CODE: return "R_SH_CODE";
case R_SH_DATA: return "R_SH_DATA";
case R_SH_LABEL: return "R_SH_LABEL";
- default: return _("*INVALID*");
+ default: return NULL;
}
}
case R_MN10300_PCREL32: return "R_MN10300_PCREL32";
case R_MN10300_PCREL16: return "R_MN10300_PCREL16";
case R_MN10300_PCREL8: return "R_MN10300_PCREL8";
- default: return _("*INVALID*");
+ default: return NULL;
}
}
case R_MN10200_PCREL8: return "R_MN10200_PCREL8";
case R_MN10200_PCREL16: return "R_MN10200_PCREL16";
case R_MN10200_PCREL24: return "R_MN10200_PCREL24";
- default: return _("*INVALID*");
+ default: return NULL;
}
}
case R_PPC_EMB_BIT_FLD: return "R_PPC_EMB_BIT_FLD";
case R_PPC_EMB_RELSDA: return "R_PPC_EMB_RELSDA";
case R_PPC_TOC16: return "R_PPC_TOC16";
- default: return _("*INVALID*");
+ default: return NULL;
}
}
case R_MIPS_PC16: return "R_MIPS_PC16";
case R_MIPS_CALL16: return "R_MIPS_CALL16";
case R_MIPS_GPREL32: return "R_MIPS_GPREL32";
- default: return _("*INVALID*");
+ default: return NULL;
}
}
case R_ALPHA_GLOB_DAT: return "R_ALPHA_GLOB_DAT";
case R_ALPHA_JMP_SLOT: return "R_ALPHA_JMP_SLOT";
case R_ALPHA_RELATIVE: return "R_ALPHA_RELATIVE";
- default: return _("*INVALID*");
+ default: return NULL;
}
}
case R_ARM_GOTPC: return "R_ARM_GOTPC";
case R_ARM_GOT32: return "R_ARM_GOT32";
case R_ARM_PLT32: return "R_ARM_PLT32";
- default: return _("*INVALID*");
+ default: return NULL;
}
}
switch (elf_header.e_machine)
{
default:
- rtype = "<unknown>";
+ rtype = NULL;
break;
case EM_CYGNUS_M32R:
break;
}
- printf ("%-21.21s", rtype);
+ if (rtype == NULL)
+ printf ("unrecognised: %-7x", ELF32_R_TYPE (info));
+ else
+ printf ("%-21.21s", rtype);
symtab_index = ELF32_R_SYM (info);