This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Small gas patch



1999-11-19  Geoff Berry  <gcb@gnu.org>

	* listing.c (buffer_line): Open source file in binary mode to fix
	listing file generation under Cygwin.
	
	* symbols.c (symbol_find_base): Copy string before converting to
	upper case if symbols aren't case sensitive.


--- binutils-2.9.1/gas/listing.c~	Tue Apr 07 15:47:32 1998
+++ binutils-2.9.1/gas/listing.c	Fri Nov 19 12:58:42 1999
@@ -448,7 +448,7 @@
 	}
 
       last_open_file_info = file;
-      last_open_file = fopen (file->filename, "r");
+      last_open_file = fopen (file->filename, "rb");
       if (last_open_file == NULL)
 	{
 	  file->at_end = 1;
--- binutils-2.9.1/gas/symbols.c~	Tue Apr 07 15:47:33 1998
+++ binutils-2.9.1/gas/symbols.c	Fri Nov 19 12:57:29 1999
@@ -466,6 +466,7 @@
       unsigned char *copy;
 
       copy = (unsigned char *) alloca (strlen (name) + 1);
+      strcpy (copy, name);
       name = (const char *) copy;
       for (; *copy != '\0'; copy++)
 	if (islower (*copy))

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]