mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-02 02:45:37 +08:00
[AArch64] Fix the documentation on :pg_hi21:
This commit is contained in:

committed by
Marcus Shawcroft

parent
b8b91e982e
commit
34fd659b79
@ -1,3 +1,7 @@
|
|||||||
|
2014-06-02 Martin Storsjo <martin@martin.st>
|
||||||
|
|
||||||
|
* doc/c-aarch64.texi: Fix the documentation on :pg_hi21:.
|
||||||
|
|
||||||
2014-06-05 Joel Brobecker <brobecker@adacore.com>
|
2014-06-05 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
|
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
|
||||||
|
@ -186,24 +186,24 @@ For example to load the 48-bit absolute address of @var{foo} into x0:
|
|||||||
@cindex ADRP, ADD, LDR/STR group relocations, AArch64
|
@cindex ADRP, ADD, LDR/STR group relocations, AArch64
|
||||||
Relocations for @samp{ADRP}, and @samp{ADD}, @samp{LDR} or @samp{STR}
|
Relocations for @samp{ADRP}, and @samp{ADD}, @samp{LDR} or @samp{STR}
|
||||||
instructions can be generated by prefixing the label with
|
instructions can be generated by prefixing the label with
|
||||||
@samp{#:pg_hi21:} and @samp{#:lo12:} respectively.
|
@samp{:pg_hi21:} and @samp{#:lo12:} respectively.
|
||||||
|
|
||||||
For example to use 33-bit (+/-4GB) pc-relative addressing to
|
For example to use 33-bit (+/-4GB) pc-relative addressing to
|
||||||
load the address of @var{foo} into x0:
|
load the address of @var{foo} into x0:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
adrp x0, #:pg_hi21:foo
|
adrp x0, :pg_hi21:foo
|
||||||
add x0, x0, #:lo12:foo
|
add x0, x0, #:lo12:foo
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
Or to load the value of @var{foo} into x0:
|
Or to load the value of @var{foo} into x0:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
adrp x0, #:pg_hi21:foo
|
adrp x0, :pg_hi21:foo
|
||||||
ldr x0, [x0, #:lo12:foo]
|
ldr x0, [x0, #:lo12:foo]
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
Note that @samp{#:pg_hi21:} is optional.
|
Note that @samp{:pg_hi21:} is optional.
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
adrp x0, foo
|
adrp x0, foo
|
||||||
@ -212,7 +212,7 @@ Note that @samp{#:pg_hi21:} is optional.
|
|||||||
is equivalent to
|
is equivalent to
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
adrp x0, #:pg_hi21:foo
|
adrp x0, :pg_hi21:foo
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@node AArch64 Floating Point
|
@node AArch64 Floating Point
|
||||||
|
Reference in New Issue
Block a user