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

Re: [patch] print additional mips elf 64 reloc type info in readelf


Timothy Daly wrote:
[snip]
> @@ -1071,8 +1094,14 @@ dump_relocations (file, rel_offset, rel_
>  #else
>  	printf (_("unrecognised: %-7lx"), type);
>  #endif
> -      else
> -	printf ("%-21.21s", rtype);
> +      else 
> +	{
> +	  printf ("%-21.21s", rtype);
> +	  if (rtype2 != NULL) 
> +	    printf ("%-21.21s", rtype2);
> +	  if (rtype3 != NULL) 
> +	    printf ("%-21.21s", rtype3);

Is better to print also the "unrecognised" string for rtype[23] == NULL.


Thiemo


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