From 3d6d961fe070b5575a6c04a73d2aef6a4177addc Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 29 Feb 2008 17:04:07 +0000 Subject: [PATCH] 2.18.50.0.4 --- .cvsignore | 2 +- ... => binutils-2.18.50.0.4-build-fixes.patch | 0 binutils-2.18.50.0.4-bz5788.patch | 48 +++++++++++++++++++ ...h => binutils-2.18.50.0.4-ia64-lib64.patch | 0 ...nutils-2.18.50.0.4-ltconfig-multilib.patch | 0 ...=> binutils-2.18.50.0.4-place-orphan.patch | 0 ...ch => binutils-2.18.50.0.4-ppc64-pie.patch | 0 ...s-2.18.50.0.4-symbolic-envvar-revert.patch | 0 ...atch => binutils-2.18.50.0.4-version.patch | 0 binutils.spec | 25 ++++++---- sources | 2 +- 11 files changed, 65 insertions(+), 12 deletions(-) rename binutils-2.18.50.0.3-build-fixes.patch => binutils-2.18.50.0.4-build-fixes.patch (100%) create mode 100644 binutils-2.18.50.0.4-bz5788.patch rename binutils-2.18.50.0.3-ia64-lib64.patch => binutils-2.18.50.0.4-ia64-lib64.patch (100%) rename binutils-2.18.50.0.3-ltconfig-multilib.patch => binutils-2.18.50.0.4-ltconfig-multilib.patch (100%) rename binutils-2.18.50.0.3-place-orphan.patch => binutils-2.18.50.0.4-place-orphan.patch (100%) rename binutils-2.18.50.0.3-ppc64-pie.patch => binutils-2.18.50.0.4-ppc64-pie.patch (100%) rename binutils-2.18.50.0.3-symbolic-envvar-revert.patch => binutils-2.18.50.0.4-symbolic-envvar-revert.patch (100%) rename binutils-2.18.50.0.3-version.patch => binutils-2.18.50.0.4-version.patch (100%) diff --git a/.cvsignore b/.cvsignore index b414607..607b84c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -binutils-2.18.50.0.3.tar.bz2 +binutils-2.18.50.0.4.tar.bz2 diff --git a/binutils-2.18.50.0.3-build-fixes.patch b/binutils-2.18.50.0.4-build-fixes.patch similarity index 100% rename from binutils-2.18.50.0.3-build-fixes.patch rename to binutils-2.18.50.0.4-build-fixes.patch diff --git a/binutils-2.18.50.0.4-bz5788.patch b/binutils-2.18.50.0.4-bz5788.patch new file mode 100644 index 0000000..19030aa --- /dev/null +++ b/binutils-2.18.50.0.4-bz5788.patch @@ -0,0 +1,48 @@ +2008-02-22 H.J. Lu + + PR ld/5788 + * elflink.c (elf_create_symbuf): Correct buffer size and + position. + +--- bfd/elflink.c 20 Feb 2008 17:42:35 -0000 1.297 ++++ bfd/elflink.c 23 Feb 2008 00:02:05 -0000 1.298 +@@ -6870,7 +6870,7 @@ elf_create_symbuf (bfd_size_type symcoun + Elf_Internal_Sym **ind, **indbufend, **indbuf; + struct elf_symbuf_symbol *ssym; + struct elf_symbuf_head *ssymbuf, *ssymhead; +- bfd_size_type i, shndx_count; ++ bfd_size_type i, shndx_count, total_size; + + indbuf = bfd_malloc2 (symcount, sizeof (*indbuf)); + if (indbuf == NULL) +@@ -6890,15 +6890,16 @@ elf_create_symbuf (bfd_size_type symcoun + if (ind[0]->st_shndx != ind[1]->st_shndx) + shndx_count++; + +- ssymbuf = bfd_malloc ((shndx_count + 1) * sizeof (*ssymbuf) +- + (indbufend - indbuf) * sizeof (*ssymbuf)); ++ total_size = ((shndx_count + 1) * sizeof (*ssymbuf) ++ + (indbufend - indbuf) * sizeof (*ssym)); ++ ssymbuf = bfd_malloc (total_size); + if (ssymbuf == NULL) + { + free (indbuf); + return NULL; + } + +- ssym = (struct elf_symbuf_symbol *) (ssymbuf + shndx_count); ++ ssym = (struct elf_symbuf_symbol *) (ssymbuf + shndx_count + 1); + ssymbuf->ssym = NULL; + ssymbuf->count = shndx_count; + ssymbuf->st_shndx = 0; +@@ -6916,7 +6917,9 @@ elf_create_symbuf (bfd_size_type symcoun + ssym->st_other = (*ind)->st_other; + ssymhead->count++; + } +- BFD_ASSERT ((bfd_size_type) (ssymhead - ssymbuf) == shndx_count); ++ BFD_ASSERT ((bfd_size_type) (ssymhead - ssymbuf) == shndx_count ++ && (((bfd_hostptr_t) ssym - (bfd_hostptr_t) ssymbuf) ++ == total_size)); + + free (indbuf); + return ssymbuf; diff --git a/binutils-2.18.50.0.3-ia64-lib64.patch b/binutils-2.18.50.0.4-ia64-lib64.patch similarity index 100% rename from binutils-2.18.50.0.3-ia64-lib64.patch rename to binutils-2.18.50.0.4-ia64-lib64.patch diff --git a/binutils-2.18.50.0.3-ltconfig-multilib.patch b/binutils-2.18.50.0.4-ltconfig-multilib.patch similarity index 100% rename from binutils-2.18.50.0.3-ltconfig-multilib.patch rename to binutils-2.18.50.0.4-ltconfig-multilib.patch diff --git a/binutils-2.18.50.0.3-place-orphan.patch b/binutils-2.18.50.0.4-place-orphan.patch similarity index 100% rename from binutils-2.18.50.0.3-place-orphan.patch rename to binutils-2.18.50.0.4-place-orphan.patch diff --git a/binutils-2.18.50.0.3-ppc64-pie.patch b/binutils-2.18.50.0.4-ppc64-pie.patch similarity index 100% rename from binutils-2.18.50.0.3-ppc64-pie.patch rename to binutils-2.18.50.0.4-ppc64-pie.patch diff --git a/binutils-2.18.50.0.3-symbolic-envvar-revert.patch b/binutils-2.18.50.0.4-symbolic-envvar-revert.patch similarity index 100% rename from binutils-2.18.50.0.3-symbolic-envvar-revert.patch rename to binutils-2.18.50.0.4-symbolic-envvar-revert.patch diff --git a/binutils-2.18.50.0.3-version.patch b/binutils-2.18.50.0.4-version.patch similarity index 100% rename from binutils-2.18.50.0.3-version.patch rename to binutils-2.18.50.0.4-version.patch diff --git a/binutils.spec b/binutils.spec index 01fb20a..e8bce2e 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,18 +1,19 @@ Summary: A GNU collection of binary utilities. Name: binutils -Version: 2.18.50.0.3 -Release: 2 +Version: 2.18.50.0.4 +Release: 1 License: GPLv3+ Group: Development/Tools URL: http://sources.redhat.com/binutils Source: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2 -Patch1: binutils-2.18.50.0.3-ltconfig-multilib.patch -Patch2: binutils-2.18.50.0.3-ppc64-pie.patch -Patch3: binutils-2.18.50.0.3-place-orphan.patch -Patch4: binutils-2.18.50.0.3-ia64-lib64.patch -Patch5: binutils-2.18.50.0.3-build-fixes.patch -Patch6: binutils-2.18.50.0.3-symbolic-envvar-revert.patch -Patch7: binutils-2.18.50.0.3-version.patch +Patch1: binutils-2.18.50.0.4-ltconfig-multilib.patch +Patch2: binutils-2.18.50.0.4-ppc64-pie.patch +Patch3: binutils-2.18.50.0.4-place-orphan.patch +Patch4: binutils-2.18.50.0.4-ia64-lib64.patch +Patch5: binutils-2.18.50.0.4-build-fixes.patch +Patch6: binutils-2.18.50.0.4-symbolic-envvar-revert.patch +Patch7: binutils-2.18.50.0.4-version.patch +Patch8: binutils-2.18.50.0.4-bz5788.patch Buildroot: %{_tmppath}/binutils-root BuildRequires: texinfo >= 4.0, dejagnu, gettext, flex, bison @@ -65,6 +66,7 @@ to consider using libelf instead of BFD. %patch5 -p0 -b .build-fixes~ %patch6 -p0 -b .symbolic-envvar-revert~ %patch7 -p0 -b .version~ +%patch8 -p0 -b .bz5788~ # On ppc64 we might use 64K pages sed -i -e '/#define.*ELF_COMMONPAGESIZE/s/0x1000$/0x10000/' bfd/elf*ppc.c @@ -215,7 +217,10 @@ fi %{_infodir}/bfd*info* %changelog -* Tue Feb 19 2008 Fedora Release Engineering - 2.18.50.0.3-2 +* Fri Feb 29 2008 Jakub Jelinek 2.18.50.0.4-1 +- update to 2.18.50.0.4 + +* Tue Feb 19 2008 Fedora Release Engineering 2.18.50.0.3-2 - Autorebuild for GCC 4.3 * Wed Dec 12 2007 Jakub Jelinek 2.18.50.0.3-1 diff --git a/sources b/sources index 6c9f732..e670481 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4e0692b6ff63d51b7ae3529fabe290ce binutils-2.18.50.0.3.tar.bz2 +163ca01262dc530f7bf8e83bc43e65ab binutils-2.18.50.0.4.tar.bz2