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: 32-bit PowerPC sdata linker problem


On 2014-06-06 13:23, Sebastian Huber wrote:
Ok, so this "cmplwi cr0, rX, ppc_exc_lock_std@sdarel" is illegal, since
ppc_exc_lock_std@sdarel is signed and the immediate is unsigned 16-bit?  The
assembler doesn't issue a warning about this.

Exists there a way to rescue this cmplwi hack without relaxing the overflow
checks?

Hm, sorry, it was surprisingly simple.  This works:

"cmplwi cr0, rX, ppc_exc_lock_std@sdarel@l"

I was not aware that you can add several @ in a row.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


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