]> git.pld-linux.org Git - packages/elfutils.git/commitdiff
- pass elflink test on sparc
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 25 Aug 2006 19:46:31 +0000 (19:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    elfutils-sparc.patch -> 1.1

elfutils-sparc.patch [new file with mode: 0644]

diff --git a/elfutils-sparc.patch b/elfutils-sparc.patch
new file mode 100644 (file)
index 0000000..661c13c
--- /dev/null
@@ -0,0 +1,20 @@
+2006-08-25  Jakub Bogusz  <qboosh at pld-linux dot org>
+
+       * elflint.c (check_sections): support special case of SPARC ELF32 PLT
+         entries
+
+--- elfutils-0.123/src/elflint.c.orig  2006-08-25 16:20:46.000000000 +0000
++++ elfutils-0.123/src/elflint.c       2006-08-25 18:57:09.000000000 +0000
+@@ -3214,7 +3214,11 @@
+             }
+       }
+-      if (shdr->sh_entsize != 0 && shdr->sh_size % shdr->sh_entsize)
++      size_t scnsize = shdr->sh_size;
++      /* special case of SPARC ELF32 .plt: final single NOP after the last PLT entry */
++      if (!strcmp (scnname, ".plt") && (ehdr->e_machine == EM_SPARC))
++            scnsize -= 4;
++      if (shdr->sh_entsize != 0 && scnsize % shdr->sh_entsize)
+       ERROR (gettext ("\
+ section [%2zu] '%s': size not multiple of entry size\n"),
+              cnt, section_name (ebl, cnt));
This page took 0.241609 seconds and 4 git commands to generate.