From 67ee9cb6f98fcfaf6d187b943bfdf02ad9a750a1 Mon Sep 17 00:00:00 2001 From: Nicholas Clifton Date: Jun 11 2009 15:16:20 +0000 Subject: Do not attempt to set execute permission on non-regular files. (BZ 503426) --- diff --git a/binutils-2.19.51.0.2-sisreg.patch b/binutils-2.19.51.0.2-sisreg.patch new file mode 100644 index 0000000..3b3e71c --- /dev/null +++ b/binutils-2.19.51.0.2-sisreg.patch @@ -0,0 +1,39 @@ +diff -rcp ../copy-of-build-sources/bfd/opncls.c ./bfd/opncls.c +*** ../copy-of-build-sources/bfd/opncls.c 2009-05-27 12:38:06.000000000 +0100 +--- ./bfd/opncls.c 2009-06-11 15:56:04.000000000 +0100 +*************** bfd_close (bfd *abfd) +*** 681,687 **** + { + struct stat buf; + +! if (stat (abfd->filename, &buf) == 0) + { + unsigned int mask = umask (0); + +--- 681,688 ---- + { + struct stat buf; + +! if (stat (abfd->filename, &buf) == 0 +! && S_ISREG(buf.st_mode)) + { + unsigned int mask = umask (0); + +*************** bfd_close_all_done (bfd *abfd) +*** 734,740 **** + { + struct stat buf; + +! if (stat (abfd->filename, &buf) == 0) + { + unsigned int mask = umask (0); + +--- 735,742 ---- + { + struct stat buf; + +! if (stat (abfd->filename, &buf) == 0 +! && S_ISREG(buf.st_mode)) + { + unsigned int mask = umask (0); + diff --git a/binutils.spec b/binutils.spec index 647ba50..60d4261 100644 --- a/binutils.spec +++ b/binutils.spec @@ -17,7 +17,7 @@ Summary: A GNU collection of binary utilities Name: %{?cross}binutils%{?_with_debug:-debug} Version: 2.19.51.0.2 -Release: 20%{?dist} +Release: 21%{?dist} License: GPLv3+ Group: Development/Tools URL: http://sources.redhat.com/binutils @@ -34,6 +34,7 @@ Patch08: binutils-2.19.51.0.2-ifunc.patch Patch09: binutils-2.19.51.0.2-IBM.patch Patch10: binutils-2.19.51.0.2-tls-get-addr.patch Patch11: binutils-2.19.51.0.2-pr10255.patch +Patch12: binutils-2.19.51.0.2-sisreg.patch %if 0%{?_with_debug:1} # Define this if you want to skip the strip step and preserve debug info. @@ -108,6 +109,7 @@ to consider using libelf instead of BFD. %patch09 -p0 -b .IBM~ %patch10 -p0 -b .tls-get-addr~ %patch11 -p0 -b .pr10255~ +%patch12 -p0 -b .sisreg~ # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -351,6 +353,9 @@ fi %endif # %{isnative} %changelog +* Thu Jun 11 2009 Nick Clifton 2.19.51.0.2-21 +- Do not attempt to set execute permission on non-regular files. (BZ 503426) + * Tue Jun 9 2009 Jakub Jelinek 2.19.51.0.2-20 - Fix .cfi_* skip over >= 64KB of code. (PR gas/10255)