aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2014-06-06 07:29:19 +0100
committerMarcus Shawcroft <marcus.shawcroft@arm.com>2014-06-06 07:29:19 +0100
commit34fd659b79bed7333311a092e18f990e3bd31b2f (patch)
tree83f9909e107ed45ecb5b71f9ebd1b7c293224003
parentb8b91e982ec3235a24ce052cbd8bb0e4fe1464e0 (diff)
downloadgdb-34fd659b79bed7333311a092e18f990e3bd31b2f.zip
gdb-34fd659b79bed7333311a092e18f990e3bd31b2f.tar.gz
gdb-34fd659b79bed7333311a092e18f990e3bd31b2f.tar.bz2
[AArch64] Fix the documentation on :pg_hi21:
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/doc/c-aarch64.texi10
2 files changed, 9 insertions, 5 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 0bb7de0..f68f30c 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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>
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi
index cce4f61..1f4ce4c 100644
--- a/gas/doc/c-aarch64.texi
+++ b/gas/doc/c-aarch64.texi
@@ -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
Relocations for @samp{ADRP}, and @samp{ADD}, @samp{LDR} or @samp{STR}
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
load the address of @var{foo} into x0:
@smallexample
- adrp x0, #:pg_hi21:foo
+ adrp x0, :pg_hi21:foo
add x0, x0, #:lo12:foo
@end smallexample
Or to load the value of @var{foo} into x0:
@smallexample
- adrp x0, #:pg_hi21:foo
+ adrp x0, :pg_hi21:foo
ldr x0, [x0, #:lo12:foo]
@end smallexample
-Note that @samp{#:pg_hi21:} is optional.
+Note that @samp{:pg_hi21:} is optional.
@smallexample
adrp x0, foo
@@ -212,7 +212,7 @@ Note that @samp{#:pg_hi21:} is optional.
is equivalent to
@smallexample
- adrp x0, #:pg_hi21:foo
+ adrp x0, :pg_hi21:foo
@end smallexample
@node AArch64 Floating Point