[PATCH] Add FreeBSD header to elf64-sparc

Nick Clifton nickc@redhat.com
Wed Oct 18 15:57:00 GMT 2006


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



More information about the Binutils mailing list