]> git.pld-linux.org Git - packages/elfutils.git/commitdiff
- updated
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 1 Mar 2007 16:55:50 +0000 (16:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    elfutils-portability.patch -> 1.9
    elfutils-robustify.patch -> 1.6

elfutils-portability.patch
elfutils-robustify.patch

index 81480f11a805540689425623f1a8e7fa3819e18f..63e7a9cc7eb706923661f43f552c7751903a88b9 100644 (file)
@@ -1,6 +1,6 @@
 --- elfutils/backends/ChangeLog
 +++ elfutils/backends/ChangeLog
 --- elfutils/backends/ChangeLog
 +++ elfutils/backends/ChangeLog
-@@ -123,6 +123,11 @@
+@@ -130,6 +130,11 @@
        * sparc_init.c: Likewise.
        * x86_64_init.c: Likewise.
  
        * sparc_init.c: Likewise.
        * x86_64_init.c: Likewise.
  
@@ -12,7 +12,7 @@
  2005-11-19  Roland McGrath  <roland@redhat.com>
  
        * ppc64_reloc.def: REL30 -> ADDR30.
  2005-11-19  Roland McGrath  <roland@redhat.com>
  
        * ppc64_reloc.def: REL30 -> ADDR30.
-@@ -145,6 +150,9 @@
+@@ -152,6 +157,9 @@
        * Makefile.am (uninstall): Don't try to remove $(pkgincludedir).
        (CLEANFILES): Add libebl_$(m).so.
  
        * Makefile.am (uninstall): Don't try to remove $(pkgincludedir).
        (CLEANFILES): Add libebl_$(m).so.
  
@@ -90,7 +90,7 @@
  libebl_%.map: Makefile
 --- elfutils/ChangeLog
 +++ elfutils/ChangeLog
  libebl_%.map: Makefile
 --- elfutils/ChangeLog
 +++ elfutils/ChangeLog
-@@ -11,6 +11,10 @@
+@@ -15,6 +15,10 @@
        * configure.ac: Add dummy automake conditional to get dependencies
        for non-generic linker right.  See src/Makefile.am.
  
        * configure.ac: Add dummy automake conditional to get dependencies
        for non-generic linker right.  See src/Makefile.am.
  
  2005-11-18  Roland McGrath  <roland@redhat.com>
  
        * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable.
  2005-11-18  Roland McGrath  <roland@redhat.com>
  
        * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable.
-@@ -58,6 +62,17 @@
+@@ -62,6 +66,17 @@
        * Makefile.am (all_SUBDIRS): Add libdwfl.
        * configure.ac: Write libdwfl/Makefile.
  
        * Makefile.am (all_SUBDIRS): Add libdwfl.
        * configure.ac: Write libdwfl/Makefile.
  
  ac_ct_CC = @ac_ct_CC@
 --- elfutils/configure
 +++ elfutils/configure
  ac_ct_CC = @ac_ct_CC@
 --- elfutils/configure
 +++ elfutils/configure
-@@ -276,7 +276,7 @@ PACKAGE_STRING='Red Hat elfutils 0.124'
+@@ -276,7 +276,7 @@ PACKAGE_STRING='Red Hat elfutils 0.126'
  PACKAGE_BUGREPORT='http://bugzilla.redhat.com/bugzilla/'
  
  ac_unique_file="libelf/libelf.h"
  PACKAGE_BUGREPORT='http://bugzilla.redhat.com/bugzilla/'
  
  ac_unique_file="libelf/libelf.h"
  libcpu_i386_a_SOURCES = i386_dis.c
 --- elfutils/libdw/ChangeLog
 +++ elfutils/libdw/ChangeLog
  libcpu_i386_a_SOURCES = i386_dis.c
 --- elfutils/libdw/ChangeLog
 +++ elfutils/libdw/ChangeLog
-@@ -317,6 +317,11 @@
+@@ -329,6 +329,11 @@
  
  2005-05-31  Roland McGrath  <roland@redhat.com>
  
  
  2005-05-31  Roland McGrath  <roland@redhat.com>
  
                                                       $(COMPILE)))
 --- elfutils/libdwfl/ChangeLog
 +++ elfutils/libdwfl/ChangeLog
                                                       $(COMPILE)))
 --- elfutils/libdwfl/ChangeLog
 +++ elfutils/libdwfl/ChangeLog
-@@ -358,6 +358,11 @@
+@@ -409,6 +409,11 @@
  
  2005-07-21  Roland McGrath  <roland@redhat.com>
  
  
  2005-07-21  Roland McGrath  <roland@redhat.com>
  
  
 --- elfutils/libebl/ChangeLog
 +++ elfutils/libebl/ChangeLog
  
 --- elfutils/libebl/ChangeLog
 +++ elfutils/libebl/ChangeLog
-@@ -451,6 +451,11 @@
+@@ -460,6 +460,11 @@
        * Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency
        tracking works right.
  
        * Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency
        tracking works right.
  
  INCLUDES = -I$(srcdir) -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \
 --- elfutils/libebl/Makefile.in
 +++ elfutils/libebl/Makefile.in
  INCLUDES = -I$(srcdir) -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \
 --- elfutils/libebl/Makefile.in
 +++ elfutils/libebl/Makefile.in
-@@ -131,6 +131,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+@@ -132,6 +132,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
  INSTALL_SCRIPT = @INSTALL_SCRIPT@
  INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  LDFLAGS = @LDFLAGS@
  INSTALL_SCRIPT = @INSTALL_SCRIPT@
  INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  LDFLAGS = @LDFLAGS@
  LEX = @LEX@
  LEXLIB = @LEXLIB@
  LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
  LEX = @LEX@
  LEXLIB = @LEXLIB@
  LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-@@ -171,6 +172,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
+@@ -172,6 +173,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
  TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
  USE_NLS = @USE_NLS@
  VERSION = 1
  TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
  USE_NLS = @USE_NLS@
  VERSION = 1
  XGETTEXT = @XGETTEXT@
  YACC = @YACC@
  ac_ct_CC = @ac_ct_CC@
  XGETTEXT = @XGETTEXT@
  YACC = @YACC@
  ac_ct_CC = @ac_ct_CC@
-@@ -213,9 +215,9 @@ sharedstatedir = @sharedstatedir@
+@@ -214,9 +216,9 @@ sharedstatedir = @sharedstatedir@
  sysconfdir = @sysconfdir@
  target_alias = @target_alias@
  @MUDFLAP_FALSE@AM_CFLAGS = -fpic -Wall -Wshadow -Werror -Wunused \
  sysconfdir = @sysconfdir@
  target_alias = @target_alias@
  @MUDFLAP_FALSE@AM_CFLAGS = -fpic -Wall -Wshadow -Werror -Wunused \
  
 --- elfutils/libelf/ChangeLog
 +++ elfutils/libelf/ChangeLog
  
 --- elfutils/libelf/ChangeLog
 +++ elfutils/libelf/ChangeLog
-@@ -178,6 +178,11 @@
+@@ -206,6 +206,11 @@
        If section content hasn't been read yet, do it before looking for the
        block size.  If no section data present, infer size of section header.
  
        If section content hasn't been read yet, do it before looking for the
        block size.  If no section data present, infer size of section header.
  
  ac_ct_CC = @ac_ct_CC@
 --- elfutils/src/ChangeLog
 +++ elfutils/src/ChangeLog
  ac_ct_CC = @ac_ct_CC@
 --- elfutils/src/ChangeLog
 +++ elfutils/src/ChangeLog
-@@ -8,6 +8,10 @@
+@@ -76,6 +76,10 @@
        * elflint.c (valid_e_machine): Add EM_ALPHA.
        Reported by Christian Aichinger <Greek0@gmx.net>.
  
        * elflint.c (valid_e_machine): Add EM_ALPHA.
        Reported by Christian Aichinger <Greek0@gmx.net>.
  
  2006-08-08  Ulrich Drepper  <drepper@redhat.com>
  
        * elflint.c (check_dynamic): Don't require DT_HASH for DT_SYMTAB.
  2006-08-08  Ulrich Drepper  <drepper@redhat.com>
  
        * elflint.c (check_dynamic): Don't require DT_HASH for DT_SYMTAB.
-@@ -84,6 +88,10 @@
+@@ -152,6 +156,10 @@
        * Makefile.am: Add hacks to create dependency files for non-generic
        linker.
  
        * Makefile.am: Add hacks to create dependency files for non-generic
        linker.
  
  2006-06-12  Ulrich Drepper  <drepper@redhat.com>
  
        * ldgeneric.c (ld_generic_generate_sections): Don't create .interp
  2006-06-12  Ulrich Drepper  <drepper@redhat.com>
  
        * ldgeneric.c (ld_generic_generate_sections): Don't create .interp
-@@ -432,6 +440,11 @@
+@@ -500,6 +508,11 @@
        * readelf.c (print_debug_loc_section): Fix indentation for larger
        address size.
  
        * readelf.c (print_debug_loc_section): Fix indentation for larger
        address size.
  
             $(if $($(*F)_no_Werror),,-Werror) \
 -           $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
 +           $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \
             $(if $($(*F)_no_Werror),,-Werror) \
 -           $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
 +           $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \
-            $(if $($(*F)_no_Wformat),,-Wformat=2)
+            $(if $($(*F)_no_Wformat),,-Wformat=2) $(CFLAGS_$(*F))
  
  INCLUDES = -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
 --- elfutils/src/Makefile.in
 +++ elfutils/src/Makefile.in
  
  INCLUDES = -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
 --- elfutils/src/Makefile.in
 +++ elfutils/src/Makefile.in
-@@ -202,6 +202,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+@@ -212,6 +212,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
  INSTALL_SCRIPT = @INSTALL_SCRIPT@
  INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  LDFLAGS = @LDFLAGS@
  INSTALL_SCRIPT = @INSTALL_SCRIPT@
  INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  LDFLAGS = @LDFLAGS@
  LEX = @LEX@
  LEXLIB = @LEXLIB@
  LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
  LEX = @LEX@
  LEXLIB = @LEXLIB@
  LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-@@ -242,6 +243,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
+@@ -252,6 +253,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
  TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
  USE_NLS = @USE_NLS@
  VERSION = @VERSION@
  TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
  USE_NLS = @USE_NLS@
  VERSION = @VERSION@
  XGETTEXT = @XGETTEXT@
  YACC = @YACC@ -d
  ac_ct_CC = @ac_ct_CC@
  XGETTEXT = @XGETTEXT@
  YACC = @YACC@ -d
  ac_ct_CC = @ac_ct_CC@
-@@ -286,12 +288,12 @@ target_alias = @target_alias@
+@@ -296,13 +298,13 @@ target_alias = @target_alias@
  @MUDFLAP_FALSE@AM_CFLAGS = -Wall -Wshadow -std=gnu99 \
  @MUDFLAP_FALSE@       $(native_ld_cflags) $(if \
  @MUDFLAP_FALSE@       $($(*F)_no_Werror),,-Werror) $(if \
 -@MUDFLAP_FALSE@       $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \
 +@MUDFLAP_FALSE@       $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \
  @MUDFLAP_FALSE@AM_CFLAGS = -Wall -Wshadow -std=gnu99 \
  @MUDFLAP_FALSE@       $(native_ld_cflags) $(if \
  @MUDFLAP_FALSE@       $($(*F)_no_Werror),,-Werror) $(if \
 -@MUDFLAP_FALSE@       $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \
 +@MUDFLAP_FALSE@       $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \
- @MUDFLAP_FALSE@       $($(*F)_no_Wformat),,-Wformat=2)
+ @MUDFLAP_FALSE@       $($(*F)_no_Wformat),,-Wformat=2) \
+ @MUDFLAP_FALSE@       $(CFLAGS_$(*F))
  @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -Wall -Wshadow -std=gnu99 \
  @MUDFLAP_TRUE@        $(native_ld_cflags) $(if \
  @MUDFLAP_TRUE@        $($(*F)_no_Werror),,-Werror) $(if \
 -@MUDFLAP_TRUE@        $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \
 +@MUDFLAP_TRUE@        $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \
  @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -Wall -Wshadow -std=gnu99 \
  @MUDFLAP_TRUE@        $(native_ld_cflags) $(if \
  @MUDFLAP_TRUE@        $($(*F)_no_Werror),,-Werror) $(if \
 -@MUDFLAP_TRUE@        $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \
 +@MUDFLAP_TRUE@        $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \
- @MUDFLAP_TRUE@        $($(*F)_no_Wformat),,-Wformat=2)
+ @MUDFLAP_TRUE@        $($(*F)_no_Wformat),,-Wformat=2) $(CFLAGS_$(*F))
  INCLUDES = -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
           -I$(srcdir)/../libdw -I$(srcdir)/../libdwfl \
 --- elfutils/src/strings.c
  INCLUDES = -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
           -I$(srcdir)/../libdw -I$(srcdir)/../libdwfl \
 --- elfutils/src/strings.c
  cannot set access and modification date of '%s'"), fname);
 --- elfutils/tests/ChangeLog
 +++ elfutils/tests/ChangeLog
  cannot set access and modification date of '%s'"), fname);
 --- elfutils/tests/ChangeLog
 +++ elfutils/tests/ChangeLog
-@@ -405,6 +405,11 @@
+@@ -449,6 +449,11 @@
        * Makefile.am (TESTS): Add run-elflint-test.sh.
        (EXTRA_DIST): Add run-elflint-test.sh and testfile18.bz2.
  
        * Makefile.am (TESTS): Add run-elflint-test.sh.
        (EXTRA_DIST): Add run-elflint-test.sh and testfile18.bz2.
  
  endif
 --- elfutils/tests/Makefile.in
 +++ elfutils/tests/Makefile.in
  endif
 --- elfutils/tests/Makefile.in
 +++ elfutils/tests/Makefile.in
-@@ -287,6 +287,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+@@ -297,6 +297,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
  INSTALL_SCRIPT = @INSTALL_SCRIPT@
  INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  LDFLAGS = @LDFLAGS@
  INSTALL_SCRIPT = @INSTALL_SCRIPT@
  INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  LDFLAGS = @LDFLAGS@
  LEX = @LEX@
  LEXLIB = @LEXLIB@
  LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
  LEX = @LEX@
  LEXLIB = @LEXLIB@
  LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-@@ -327,6 +328,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
+@@ -337,6 +338,7 @@ TESTS_RPATH_FALSE = @TESTS_RPATH_FALSE@
  TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
  USE_NLS = @USE_NLS@
  VERSION = @VERSION@
  TESTS_RPATH_TRUE = @TESTS_RPATH_TRUE@
  USE_NLS = @USE_NLS@
  VERSION = @VERSION@
  XGETTEXT = @XGETTEXT@
  YACC = @YACC@
  ac_ct_CC = @ac_ct_CC@
  XGETTEXT = @XGETTEXT@
  YACC = @YACC@
  ac_ct_CC = @ac_ct_CC@
-@@ -368,10 +370,10 @@ sbindir = @sbindir@
+@@ -378,10 +380,10 @@ sbindir = @sbindir@
  sharedstatedir = @sharedstatedir@
  sysconfdir = @sysconfdir@
  target_alias = @target_alias@
  sharedstatedir = @sharedstatedir@
  sysconfdir = @sysconfdir@
  target_alias = @target_alias@
index edc1d5866f738abfcadac3fb1a5877f7e47768f7..9f87c48da3b83e51ba63c6b97d74105c528c3c7c 100644 (file)
@@ -17,7 +17,7 @@ libelf/
        * elf_getshstrndx.c (elf_getshstrndx): Add elf->start_offset to
        elf->map_address.  Check if first section header fits into object's
        bounds.
        * elf_getshstrndx.c (elf_getshstrndx): Add elf->start_offset to
        elf->map_address.  Check if first section header fits into object's
        bounds.
-       * elf32_getshdr.c (elfw2(LIBELFBITS,getshdr)): Fix comment pasto.
+       * elf32_getshdr.c (elfw2(LIBELFBITS,getshdr)):
        Check if section header table fits into object's bounds.
        * elf_begin.c (get_shnum): Ensure section headers fits into
        object's bounds.
        Check if section header table fits into object's bounds.
        * elf_begin.c (get_shnum): Ensure section headers fits into
        object's bounds.
@@ -84,9 +84,9 @@ src/
          /* All the data is already mapped.  Use it.  */
          if (ehdr->e_ident[EI_DATA] == MY_ELFDATA
              && (ALLOW_UNALIGNED
          /* All the data is already mapped.  Use it.  */
          if (ehdr->e_ident[EI_DATA] == MY_ELFDATA
              && (ALLOW_UNALIGNED
---- elfutils-0.122/libelf/elf32_getshdr.c
-+++ elfutils-0.122/libelf/elf32_getshdr.c
-@@ -101,11 +101,12 @@ elfw2(LIBELFBITS,getshdr) (scn)
+--- elfutils-0.126/libelf/elf32_getshdr.c
++++ elfutils-0.126/libelf/elf32_getshdr.c
+@@ -101,7 +101,8 @@ elfw2(LIBELFBITS,getshdr) (scn)
        goto out;
  
        size_t shnum;
        goto out;
  
        size_t shnum;
@@ -96,15 +96,10 @@ src/
        goto out;
        size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr));
  
        goto out;
        size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr));
  
--      /* Allocate memory for the program headers.  We know the number
-+      /* Allocate memory for the section headers.  We know the number
-        of entries from the ELF header.  */
-       ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr =
-       (ElfW2(LIBELFBITS,Shdr) *) malloc (size);
-@@ -128,6 +129,16 @@ elfw2(LIBELFBITS,getshdr) (scn)
-                          + ehdr->e_shoff)
-                         & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) != 0));
+@@ -118,6 +119,16 @@ elfw2(LIBELFBITS,getshdr) (scn)
  
  
+       if (elf->map_address != NULL)
+       {
 +        /* First see whether the information in the ELF header is
 +           valid and it does not ask for too much.  */
 +        if (unlikely (ehdr->e_shoff >= elf->maximum_size)
 +        /* First see whether the information in the ELF header is
 +           valid and it does not ask for too much.  */
 +        if (unlikely (ehdr->e_shoff >= elf->maximum_size)
@@ -115,9 +110,10 @@ src/
 +            goto free_and_out;
 +          }
 +
 +            goto free_and_out;
 +          }
 +
-         /* Now copy the data and at the same time convert the byte
-            order.  */
-         if (ALLOW_UNALIGNED
+         ElfW2(LIBELFBITS,Shdr) *notcvt;
+         /* All the data is already mapped.  If we could use it
+
 --- elfutils-0.122/libelf/elf32_newphdr.c
 +++ elfutils-0.122/libelf/elf32_newphdr.c
 @@ -124,6 +124,12 @@ elfw2(LIBELFBITS,newphdr) (elf, count)
 --- elfutils-0.122/libelf/elf32_newphdr.c
 +++ elfutils-0.122/libelf/elf32_newphdr.c
 @@ -124,6 +124,12 @@ elfw2(LIBELFBITS,newphdr) (elf, count)
This page took 0.241037 seconds and 4 git commands to generate.