Unify message for unsupported relocation.

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

No files matched your search

+4
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>
Mark miscompile error for translation.
+16 -14
View File
@@ -564,7 +564,8 @@ arm_get_trampoline_size (Elf_Ehdr *e,
break;
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;
}
}
@@ -681,8 +682,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
(unsigned long long) offset);
break;
default:
grub_util_error (_("relocation 0x%llx is not implemented yet"),
(unsigned long long) ELF_R_TYPE (info));
grub_util_error (_("relocation 0x%x is not implemented yet"),
(unsigned int) ELF_R_TYPE (info));
break;
}
break;
@@ -744,8 +745,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
}
default:
grub_util_error (_("relocation 0x%llx is not implemented yet"),
(unsigned long long) ELF_R_TYPE (info));
grub_util_error (_("relocation 0x%x is not implemented yet"),
(unsigned int) ELF_R_TYPE (info));
break;
}
break;
@@ -820,8 +821,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
break;
default:
grub_util_error (_("relocation 0x%llx is not implemented yet"),
(unsigned long long) ELF_R_TYPE (info));
grub_util_error (_("relocation 0x%x is not implemented yet"),
(unsigned int) ELF_R_TYPE (info));
break;
}
break;
@@ -848,8 +849,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
}
break;
default:
grub_util_error (_("relocation %d is not implemented yet"),
(unsigned long long) ELF_R_TYPE (info));
grub_util_error (_("relocation 0x%x is not implemented yet"),
(unsigned int) ELF_R_TYPE (info));
break;
}
break;
@@ -943,7 +944,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
break;
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;
@@ -1174,8 +1176,8 @@ SUFFIX (make_reloc_section) (Elf_Ehdr *e, void **out,
#endif
break;
default:
grub_util_error (_("relocation 0x%llx is not implemented yet"),
(unsigned long long) ELF_R_TYPE (info));
grub_util_error (_("relocation 0x%x is not implemented yet"),
(unsigned int) ELF_R_TYPE (info));
break;
}
break;
@@ -1199,8 +1201,8 @@ SUFFIX (make_reloc_section) (Elf_Ehdr *e, void **out,
case R_AARCH64_JUMP26:
break;
default:
grub_util_error (_("fixup for relocation %d is not implemented yet"),
(unsigned long long) ELF_R_TYPE (info));
grub_util_error (_("fixup for relocation %u is not implemented yet"),
(unsigned int) ELF_R_TYPE (info));
break;
}
break;