]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 11 Nov 2011 17:05:16 +0000 (18:05 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 11 Nov 2011 17:05:16 +0000 (18:05 +0100)
an error and not a fatal on unrecognised relocation types.

ChangeLog
grub-core/kern/x86_64/dl.c

index 7c2b55e3b84f042607c9a60bb9ad2f8bd1907b9c..b0a790c1054a23ca1bb8a54e9c21e90f4f91ada7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
+       an error and not a fatal on unrecognised relocation types.
+
 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
index 090ad78b86b74609724bafe8504277ccda287dd7..9b63b30f830830f7296562e00f0b94c99524ec37 100644 (file)
@@ -109,7 +109,9 @@ grub_arch_dl_relocate_symbols (grub_dl_t mod, void *ehdr)
                     break;
 
                   default:
-                    grub_fatal ("Unrecognized relocation: %d\n", ELF_R_TYPE (rel->r_info));
+                   return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
+                                      "this relocation (%d) is not implemented yet",
+                                      ELF_R_TYPE (rel->r_info));
                  }
              }
          }