New ARM testsuite failures

Andre Simoes Dias Vieira Andre.SimoesDiasVieira@arm.com
Thu Nov 29 15:51:00 GMT 2018


Hi Nick,

I was wrong, got thrown off by some dodgy debugging, it's not because of OBJ_ELF, they are both correctly configured as elf targets.  As I said before GAS only decides to transform blx -> bl if it can tell whether the target function is an arm/thumb function depending on whether its in thumb/arm mode.  The code that checks this requires arm_is_eabi () to return true and currently arm-netbsdelf and arm-nto don't, Im guessing there is a good reason for that.  I currently think it's best to skip this test for these targets.  I'll provide a patch soon.

Cheers,
Andre

________________________________________
From: Nick Clifton <nickc@redhat.com>
Sent: Thursday, November 29, 2018 12:25:53 PM
To: Andre Simoes Dias Vieira; binutils@sourceware.org
Subject: Re: New ARM testsuite failures

Hi Andre,

>> No good deed goes unpunished ;)

So true.  So true. :-)


> This left me stuck though because:
> 1) I don't understand why it matters if a target is ELF or not when
> making this transformation, I heard it might be because of some non-elf
> targets having to perform state changes in a slightly different manner?

I think that it is because with non-ELF targets you cannot tell if a label
is a function entry point or some other kind of branch destination.


> 2) Should arm-netbsdelf and/or arm-nto be 'elf'? Specially the first
> lead me to think yes, as for the second I have no idea.

Yes and yes.  (NTO is a form of ELF format used by QNX RTOS).  [Aargh acronym overload!]

Cheers
  Nick



More information about the Binutils mailing list