summaryrefslogtreecommitdiff
path: root/gas/doc/c-sparc.texi
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2012-04-27 20:45:23 +0000
committerDavid S. Miller <davem@redhat.com>2012-04-27 20:45:23 +0000
commit3838dc63fd0e41d382c5249e27bdf237a81e4085 (patch)
tree52679a30efa4959828a3fa41790d08986f7d6207 /gas/doc/c-sparc.texi
parent6a1b02b3d325ec127c0a82254dd878f11f960d75 (diff)
downloadbinutils-redhat-3838dc63fd0e41d382c5249e27bdf237a81e4085.tar.gz
Document sparc's %l34 and %h34
gas/ * doc/c-sparc.text: Document %l34 and %h34.
Diffstat (limited to 'gas/doc/c-sparc.texi')
-rw-r--r--gas/doc/c-sparc.texi17
1 files changed, 16 insertions, 1 deletions
diff --git a/gas/doc/c-sparc.texi b/gas/doc/c-sparc.texi
index 099c031d2a..a47e8b2e70 100644
--- a/gas/doc/c-sparc.texi
+++ b/gas/doc/c-sparc.texi
@@ -584,9 +584,24 @@ also be generated using @samp{%ulo}.
@item
@code{R_SPARC_M44} is requested using @samp{%m44}.
@item
-@code{R_SPARC_L44} is requested using @samp{%l44}.
+@code{R_SPARC_L44} is requested using @samp{%l44} or @samp{%l34}.
+@item
+@code{R_SPARC_H34} is requested using @samp{%h34}.
@end itemize
+The @samp{%l34} generates a @code{R_SPARC_L44} relocation because it
+calculates the necessary value, and therefore no explicit
+@code{R_SPARC_L34} relocation needed to be created for this purpose.
+
+The @samp{%h34} and @samp{%l34} relocations are used for the abs34 code
+model. Here is an example abs34 address generation sequence:
+
+@example
+sethi %h34(symbol), %g1
+sllx %g1, 2, %g1
+or %g1, %l34(symbol), %g1
+@end example
+
The PC relative relocation @code{R_SPARC_PC22} can be obtained by
enclosing an operand inside of @samp{%pc22}. Likewise, the
@code{R_SPARC_PC10} relocation can be obtained using @samp{%pc10}.