Unify message for unsupported relocation.

This commit is contained in:
Vladimir Serbinenko 2013-12-17 16:17:46 +01:00
parent 50d2e9596f
commit d6c2782a90
2 changed files with 20 additions and 14 deletions

View file

@ -1,3 +1,7 @@
2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
Unify message for unsupported relocation.
2013-12-17 Vladimir Serbinenko <phcoder@gmail.com> 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
Mark miscompile error for translation. Mark miscompile error for translation.

View file

@ -564,7 +564,8 @@ arm_get_trampoline_size (Elf_Ehdr *e,
break; break;
default: default:
grub_util_error (_("relocation 0x%x is not implemented yet!"), ELF_R_TYPE (info)); grub_util_error (_("relocation 0x%x is not implemented yet"),
(unsigned int) ELF_R_TYPE (info));
break; break;
} }
} }
@ -681,8 +682,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
(unsigned long long) offset); (unsigned long long) offset);
break; break;
default: default:
grub_util_error (_("relocation 0x%llx is not implemented yet"), grub_util_error (_("relocation 0x%x is not implemented yet"),
(unsigned long long) ELF_R_TYPE (info)); (unsigned int) ELF_R_TYPE (info));
break; break;
} }
break; break;
@ -744,8 +745,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
} }
default: default:
grub_util_error (_("relocation 0x%llx is not implemented yet"), grub_util_error (_("relocation 0x%x is not implemented yet"),
(unsigned long long) ELF_R_TYPE (info)); (unsigned int) ELF_R_TYPE (info));
break; break;
} }
break; break;
@ -820,8 +821,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
break; break;
default: default:
grub_util_error (_("relocation 0x%llx is not implemented yet"), grub_util_error (_("relocation 0x%x is not implemented yet"),
(unsigned long long) ELF_R_TYPE (info)); (unsigned int) ELF_R_TYPE (info));
break; break;
} }
break; break;
@ -848,8 +849,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
} }
break; break;
default: default:
grub_util_error (_("relocation %d is not implemented yet"), grub_util_error (_("relocation 0x%x is not implemented yet"),
(unsigned long long) ELF_R_TYPE (info)); (unsigned int) ELF_R_TYPE (info));
break; break;
} }
break; break;
@ -943,7 +944,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
break; break;
default: default:
grub_util_error (_("relocation 0x%x is not implemented yet!"), ELF_R_TYPE (info)); grub_util_error (_("relocation 0x%x is not implemented yet"),
(unsigned int) ELF_R_TYPE (info));
break; break;
} }
break; break;
@ -1174,8 +1176,8 @@ SUFFIX (make_reloc_section) (Elf_Ehdr *e, void **out,
#endif #endif
break; break;
default: default:
grub_util_error (_("relocation 0x%llx is not implemented yet"), grub_util_error (_("relocation 0x%x is not implemented yet"),
(unsigned long long) ELF_R_TYPE (info)); (unsigned int) ELF_R_TYPE (info));
break; break;
} }
break; break;
@ -1199,8 +1201,8 @@ SUFFIX (make_reloc_section) (Elf_Ehdr *e, void **out,
case R_AARCH64_JUMP26: case R_AARCH64_JUMP26:
break; break;
default: default:
grub_util_error (_("fixup for relocation %d is not implemented yet"), grub_util_error (_("fixup for relocation %u is not implemented yet"),
(unsigned long long) ELF_R_TYPE (info)); (unsigned int) ELF_R_TYPE (info));
break; break;
} }
break; break;