This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: [PATCH] Add FreeBSD header to elf64-sparc


Hi Mike, Hi Roy,

updated patch attached with all fun ChangeLog's and such

OK to commit ?

Approved - please apply, but...


@@ -545,12 +545,12 @@ md_parse_option (c, arg)
 	  {
 	    if (sparc_arch_size == 32)
 	      {
-		if (strcmp (*l, "elf32-sparc") == 0)
+		if (strncmp (*l, "elf32-sparc", 11) == 0)
 		  break;
 	      }
 	    else
 	      {
-		if (strcmp (*l, "elf64-sparc") == 0)
+		if (strncmp (*l, "elf64-sparc", 11) == 0)
 		  break;

We now have the funky CONST_STRNEQ macro (defined in bfd-in.h) for performing a strncmp against a constant string without having to count exactly how many characters it contains.


Cheers
  Nick


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