This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How to save and restore a symbol value in Aarch64?
- From: Jeffrey Walton <noloader at gmail dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Thu, 20 Apr 2017 06:54:59 -0400
- Subject: Re: How to save and restore a symbol value in Aarch64?
- Authentication-results: sourceware.org; auth=none
- References: <CAH8yC8m4ReBF_eY5B_Xs28G0-XYey0dBMssBo+X0pzi-3=OYeg@mail.gmail.com> <87tw5je6r1.fsf@linux-m68k.org>
- Reply-to: noloader at gmail dot com
On Thu, Apr 20, 2017 at 6:02 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> On Apr 20 2017, Jeffrey Walton <noloader@gmail.com> wrote:
>
>> I need the method to get the previous .cpu value
>
> .cpu is not a symbol, it is a directive, so you cannot get its "value".
> The effect of the directive is to modify the internal state of the
> assembler, which is not directly accessible to the assembler input.
Thanks Andreas.
Does '.set push, .cpu' and '.set pop, .cpu' work as {expected|desired}
for Aarch32 and Aarch64?
Sorry to have to ask. I tested code using push and pop, and its not
producing a warning or an error. I'm not sure if its wrong or a case
of the documentation being a bit stale.
Jeff