[packages/binutils] - updated to 2.27 - updated gasp patch

qboosh qboosh at pld-linux.org
Tue Dec 13 20:37:26 CET 2016


commit 62302ee669edbdf84f7050662bdb3f805ff0c7dc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 13 20:38:06 2016 +0100

    - updated to 2.27
    - updated gasp patch

 binutils-gasp.patch | 38 +++++++++++++++++++-------------------
 binutils.spec       |  6 +++---
 2 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/binutils.spec b/binutils.spec
index be275fb..b11316d 100644
--- a/binutils.spec
+++ b/binutils.spec
@@ -7,7 +7,7 @@
 %bcond_without	gold		# don't build gold (no C++ dependencies)
 %bcond_without	default_bfd	# default ld.bfd instead of gold
 %bcond_without	gasp		# gasp
-%bcond_with	tests
+%bcond_with	tests		# check target
 
 %ifnarch %{ix86} %{x8664} x32
 %undefine	with_gold
@@ -23,13 +23,13 @@ Summary(ru.UTF-8):	Набор инструментов GNU для построе
 Summary(tr.UTF-8):	GNU geliştirme araçları
 Summary(uk.UTF-8):	Набір інструментів GNU для побудови виконуваних програм
 Name:		binutils
-Version:	2.26.1
+Version:	2.27
 Release:	1
 Epoch:		4
 License:	GPL v3+
 Group:		Development/Tools
 Source0:	http://ftp.gnu.org/gnu/binutils/%{name}-%{version}.tar.bz2
-# Source0-md5:	d2b24e5b5301b7ff0207414c34c3e0fb
+# Source0-md5:	2869c9bf3e60ee97c74ac2a6bf4e9d68
 Source1:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
 # Source1-md5:	a717d9707ec77d82acb6ec9078c472d6
 Patch0:		%{name}-gasp.patch
diff --git a/binutils-gasp.patch b/binutils-gasp.patch
index 44a34c2..5d45ee9 100644
--- a/binutils-gasp.patch
+++ b/binutils-gasp.patch
@@ -1585,7 +1585,7 @@
 +#include "asintl.h"
 +#include "xregex.h"
 +
-+char *program_version = "1.2";
++const char *program_version = "1.2";
 +
 +/* This is normally declared in as.h, but we don't include that.  We
 +   need the function because other files linked with gasp.c might call
@@ -1774,7 +1774,7 @@
 +static int eol (size_t, sb *);
 +static void do_data (size_t, sb *, int);
 +static void do_datab (size_t, sb *);
-+static void do_align (size_t, sb *);
++static void gasp_do_align (size_t, sb *);
 +static void do_res (size_t, sb *, int);
 +static void do_export (sb *);
 +static void do_print (size_t, sb *);
@@ -2906,7 +2906,7 @@
 +     int size;
 +{
 +  int opsize = 4;
-+  char *opname = ".yikes!";
++  const char *opname = ".yikes!";
 +  sb acc;
 +  sb_new (&acc);
 +
@@ -2992,7 +2992,7 @@
 +/* .align <size>  */
 +
 +static void
-+do_align (idx, in)
++gasp_do_align (idx, in)
 +     size_t idx;
 +     sb *in;
 +{
@@ -4681,7 +4681,7 @@
 +#define K_IRPC		(PROCESS|55)
 +
 +struct keyword {
-+  char *name;
++  const char *name;
 +  int code;
 +  int extra;
 +};
@@ -4919,7 +4919,7 @@
 +	      do_assign (1, idx, line);
 +	      return 1;
 +	    case K_ALIGN:
-+	      do_align (idx, line);
++	      gasp_do_align (idx, line);
 +	      return 1;
 +	    case K_RES:
 +	      do_res (idx, line, 0);
@@ -5312,7 +5312,7 @@
 +/* duplicated from as internals */
 +
 +static void
-+identify (char *file)
++identify (const char *file)
 +{
 +  static int identified;
 +
@@ -5331,7 +5331,7 @@
 +/* The common portion of as_warn and as_warn_where.  */
 +
 +static void
-+as_warn_internal (char *file, unsigned int line, char *buffer)
++as_warn_internal (const char *file, unsigned int line, char *buffer)
 +{
 +  ++warning_count;
 +
@@ -5358,7 +5358,7 @@
 +  if (1 /*!flag_no_warnings*/)
 +    {
 +      va_start (args, format);
-+      vsprintf (buffer, format, args);
++      vsnprintf (buffer, sizeof (buffer), format, args);
 +      va_end (args);
 +      as_warn_internal ((char *) NULL, 0, buffer);
 +    }
@@ -5369,7 +5369,7 @@
 +   the varargs correctly and portably.  */
 +
 +void
-+as_warn_where (char *file, unsigned int line, const char *format, ...)
++as_warn_where (const char *file, unsigned int line, const char *format, ...)
 +{
 +  va_list args;
 +  char buffer[2000];
@@ -5377,7 +5377,7 @@
 +  if (1 /*!flag_no_warnings*/)
 +    {
 +      va_start (args, format);
-+      vsprintf (buffer, format, args);
++      vsnprintf (buffer, sizeof (buffer), format, args);
 +      va_end (args);
 +      as_warn_internal (file, line, buffer);
 +    }
@@ -5391,7 +5391,7 @@
 +/* The common portion of as_bad and as_bad_where.  */
 +
 +static void
-+as_bad_internal (char *file, unsigned int line, char *buffer)
++as_bad_internal (const char *file, unsigned int line, char *buffer)
 +{
 +  ++error_count;
 +
@@ -5416,7 +5416,7 @@
 +  char buffer[2000];
 +
 +  va_start (args, format);
-+  vsprintf (buffer, format, args);
++  vsnprintf (buffer, sizeof (buffer), format, args);
 +  va_end (args);
 +
 +  as_bad_internal ((char *) NULL, 0, buffer);
@@ -5427,13 +5427,13 @@
 +   the varargs correctly and portably.  */
 +
 +void
-+as_bad_where (char *file, unsigned int line, const char *format, ...)
++as_bad_where (const char *file, unsigned int line, const char *format, ...)
 +{
 +  va_list args;
 +  char buffer[2000];
 +
 +  va_start (args, format);
-+  vsprintf (buffer, format, args);
++  vsnprintf (buffer, sizeof (buffer), format, args);
 +  va_end (args);
 +
 +  as_bad_internal (file, line, buffer);
@@ -5676,12 +5676,12 @@
  	  if (err != NULL)
  	    break;
  	  if (!irpc)
---- binutils-2.23.51.0.1/gas/macro.h.orig	2012-08-07 19:47:23.000000000 +0200
-+++ binutils-2.23.51.0.1/gas/macro.h	2012-08-21 20:20:59.152943647 +0200
-@@ -90,8 +90,8 @@
+--- binutils-2.27/gas/macro.h.orig	2016-12-13 17:20:58.662894688 +0100
++++ binutils-2.27/gas/macro.h	2016-12-13 17:36:44.799550552 +0100
+@@ -89,8 +89,8 @@
  extern void macro_mri_mode (int);
  extern const char *define_macro (size_t, sb *, sb *, size_t (*) (sb *),
- 				 char *, unsigned int, const char **);
+ 				 const char *, unsigned int, const char **);
 -extern int check_macro (const char *, sb *, const char **, macro_entry **);
 +extern int check_macro (const char *, sb *, int, const char **, macro_entry **);
  extern void delete_macro (const char *);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/binutils.git/commitdiff/62302ee669edbdf84f7050662bdb3f805ff0c7dc



More information about the pld-cvs-commit mailing list