]> git.pld-linux.org Git - packages/elfutils.git/blobdiff - elfutils-inline.patch
- updated to 0.164 (fixes CVE-2014-9447, adds x32 support)
[packages/elfutils.git] / elfutils-inline.patch
index 11b0cf1d3ce74890c438f8f24fac37a342b6c36f..a8a1d028b98a0d5f92078cca21671b62a281b863 100644 (file)
@@ -1,9 +1,9 @@
 --- elfutils-0.127/src/ld.h.orig       2006-07-12 01:20:42.000000000 +0200
 +++ elfutils-0.127/src/ld.h    2007-05-19 16:13:40.015849251 +0200
-@@ -1087,7 +1087,7 @@
- /* Checked whether the symbol is undefined and referenced from a DSO.  */
- extern bool linked_from_dso_p (struct scninfo *scninfo, size_t symidx);
+@@ -1090,7 +1090,7 @@
+ #ifdef __GNUC_STDC_INLINE__
+ __attribute__ ((__gnu_inline__))
+ #endif
 -extern inline bool
 +extern __libdw_gnu_inline bool
  linked_from_dso_p (struct scninfo *scninfo, size_t symidx)
        {
          return INTUSE(dwarf_line_file) (dwfl_line (line));
        }
---- elfutils-0.127/libdwfl/elf-from-memory.c.orig      2007-03-11 03:11:55.000000000 +0100
-+++ elfutils-0.127/libdwfl/elf-from-memory.c   2007-05-19 16:09:58.174735114 +0200
-@@ -215,7 +215,7 @@
-   GElf_Addr loadbase = ehdr_vma;
-   switch (ehdr.e32.e_ident[EI_CLASS])
-     {
--      inline void handle_segment (GElf_Addr vaddr, GElf_Off offset,
-+      __libdw_gnu_inline void handle_segment (GElf_Addr vaddr, GElf_Off offset,
-                                 GElf_Xword filesz, GElf_Xword align)
+--- elfutils-0.164/libdwfl/elf-from-memory.c.orig      2015-10-12 12:22:58.000000000 +0200
++++ elfutils-0.164/libdwfl/elf-from-memory.c   2015-10-24 13:03:45.371641718 +0200
+@@ -223,7 +223,7 @@
+        segments_end, segments_end_mem and loadbase (if not
+        found_base yet).  Returns true if sanity checking failed,
+        false otherwise.  */
+-      inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset,
++      __libdw_gnu_inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset,
+                                 GElf_Xword filesz, GElf_Xword memsz)
        {
-         GElf_Off segment_end = ((offset + filesz + align - 1) & -align);
-@@ -276,7 +276,7 @@
-   switch (ehdr.e32.e_ident[EI_CLASS])
+         /* Sanity check the segment load aligns with the pagesize.  */
+@@ -303,7 +303,7 @@
      {
+       /* Reads the given segment.  Returns true if reading fails,
+        false otherwise.  */
 -      inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset,
 +      __libdw_gnu_inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset,
-                                 GElf_Xword filesz, GElf_Xword align)
+                                 GElf_Xword filesz)
        {
-         GElf_Off start = offset & -align;
+         GElf_Off start = offset & -pagesize;
 --- elfutils-0.127/libdwfl/argp-std.c.orig     2007-04-05 11:12:36.000000000 +0200
 +++ elfutils-0.127/libdwfl/argp-std.c  2007-05-19 16:08:04.209055832 +0200
 @@ -106,7 +106,7 @@
      {
        failure (dwfl, errnum, msg);
        return errnum == -1 ? EIO : errnum;
---- elfutils-0.130/libdwfl/linux-kernel-modules.c.orig 2007-10-16 07:21:41.000000000 +0200
-+++ elfutils-0.130/libdwfl/linux-kernel-modules.c      2007-11-03 15:49:26.814775289 +0100
-@@ -524,7 +524,7 @@
- {
-   Dwarf_Addr start;
-   Dwarf_Addr end;
--  inline Dwfl_Module *report (void)
-+  __libdw_gnu_inline Dwfl_Module *report (void)
-     {
-       return INTUSE(dwfl_report_module) (dwfl, KERNEL_MODNAME, start, end);
-     }
-@@ -611,7 +611,7 @@
-      only '_' and one only using '-'.  */
-   char alternate_name[namelen + 1];
--  inline bool subst_name (char from, char to)
-+  __libdw_gnu_inline bool subst_name (char from, char to)
-     {
-       const char *n = memchr (module_name, from, namelen);
-       if (n == NULL)
 --- elfutils-0.127/libdwfl/linux-proc-maps.c.orig      2007-04-05 11:12:36.000000000 +0200
 +++ elfutils-0.127/libdwfl/linux-proc-maps.c   2007-05-19 16:09:02.093611158 +0200
 @@ -134,7 +134,7 @@
      {
        if (last_file != NULL)
        {
---- elfutils-0.127/libdwfl/dwfl_module_addrsym.c.orig  2007-03-04 23:00:19.000000000 +0100
-+++ elfutils-0.127/libdwfl/dwfl_module_addrsym.c       2007-05-19 16:10:28.605345054 +0200
-@@ -59,7 +59,7 @@
+--- elfutils-0.159/libdwfl/dwfl_module_addrsym.c.orig  2014-06-14 14:36:48.425126218 +0200
++++ elfutils-0.159/libdwfl/dwfl_module_addrsym.c       2014-06-14 14:42:22.541785921 +0200
+@@ -44,7 +44,7 @@ __libdwfl_addrsym (Dwfl_Module *mod, GEl
    /* Return true iff we consider ADDR to lie in the same section as SYM.  */
    GElf_Word addr_shndx = SHN_UNDEF;
--  inline bool same_section (const GElf_Sym *sym, GElf_Word shndx)
-+  __libdw_gnu_inline bool same_section (const GElf_Sym *sym, GElf_Word shndx)
+   Elf *addr_symelf = NULL;
+-  inline bool same_section (GElf_Addr value, Elf *symelf, GElf_Word shndx)
++  __libdw_gnu_inline bool same_section (GElf_Addr value, Elf *symelf, GElf_Word shndx)
      {
        /* For absolute symbols and the like, only match exactly.  */
        if (shndx >= SHN_LORESERVE)
                           bool dwarf, bool adhoc)
      {
        size_t l = 0, u = nlines;
---- elfutils-0.128/src/strip.c.orig    2007-06-12 18:45:38.970901000 +0200
-+++ elfutils-0.128/src/strip.c 2007-06-12 18:50:29.145070719 +0200
-@@ -1336,7 +1336,7 @@
-         /* Update section headers when the data size has changed.
-            We also update the SHT_NOBITS section in the debug
-            file so that the section headers match in sh_size.  */
--        inline void update_section_size (const Elf_Data *newdata)
-+        __libdw_gnu_inline void update_section_size (const Elf_Data *newdata)
-           {
-             GElf_Shdr shdr_mem;
-             GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
+--- elfutils-0.135/src/strip.c.orig    2008-05-31 10:15:02.975418315 +0200
++++ elfutils-0.135/src/strip.c 2008-05-31 10:28:10.216279777 +0200
+@@ -1335,7 +1335,7 @@
+       /* Update section headers when the data size has changed.
+          We also update the SHT_NOBITS section in the debug
+          file so that the section headers match in sh_size.  */
+-      inline void update_section_size (const Elf_Data *newdata)
++      __libdw_gnu_inline void update_section_size (const Elf_Data *newdata)
+       {
+         GElf_Shdr shdr_mem;
+         GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
 --- elfutils-0.128/src/unstrip.c.orig  2007-06-06 01:44:33.000000000 +0200
 +++ elfutils-0.128/src/unstrip.c       2007-06-12 18:51:03.570085226 +0200
 @@ -371,7 +371,7 @@
This page took 0.039412 seconds and 4 git commands to generate.