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: gas misbehavior in binutils-2.16.1 for sh4 target and--enable-shared


Alan Modra <amodra@bigpond.net.au> wrote:
>> +  int i = ARRAY_SIZE (sh_ef_bfd_table) - 1;
>>    
>>    for (; i>0; i--)
>>      if (sh_ef_bfd_table[i] == mach)
> 
> Do you want to check sh_ef_bfd_table[0]?

Ah, I also thought so.  sh_ef_bfd_table[0] is set to EF_SH_UNKNOWN
which is 0 for backwards compatibility.  So I think that this is
intentional.

Regards,
	kaz


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