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: [ARM] register label conflict with blx instruction


Hi Christian,

> I'm wondering what would be the best way to deal with labels
> conflicting with a register name in ARM gas.

Choose better label names ? :-)


Any idea about an arm assembly syntax to avoid naming conflict
between regs and symbols for instruction that support both ?

If you know that the destination of the branch is a label and not in a register then you can use parentheses, as in:

  blx (r0)


Cheers
  Nick



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