]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 9 Dec 2013 14:43:27 +0000 (15:43 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 9 Dec 2013 14:43:27 +0000 (15:43 +0100)
Do not explicitly check for symbol table as it's already checked in
platform-independent layer.

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

index f329e87ef778cf72fa36fbffaa5b15da969a8849..cddcf38971ca80e7ae6391d810f5a45a73a5b8e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-12-09  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
+       Do not explicitly check for symbol table as it's already checked in
+       platform-independent layer.
+
 2013-12-09  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
index ec204f35b39987cf6a47ba1926c1985831287fd2..3a7fa3ed3dc50c2a272062d42f8eb5584c6c9fc7 100644 (file)
@@ -68,16 +68,6 @@ grub_arch_dl_get_tramp_got_size (const void *ehdr, grub_size_t *tramp,
   *tramp = 0;
   *got = 0;
 
-  /* Find a symbol table.  */
-  for (i = 0, s = (const Elf_Shdr *) ((const char *) e + e->e_shoff);
-       i < e->e_shnum;
-       i++, s = (const Elf_Shdr *) ((const char *) s + e->e_shentsize))
-    if (s->sh_type == SHT_SYMTAB)
-      break;
-
-  if (i == e->e_shnum)
-    return GRUB_ERR_NONE;
-
   for (i = 0, s = (const Elf_Shdr *) ((const char *) e + e->e_shoff);
        i < e->e_shnum;
        i++, s = (const Elf_Shdr *) ((const char *) s + e->e_shentsize))