aboutsummaryrefslogtreecommitdiff
path: root/gas/doc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-08-29 06:49:35 +0000
committerNick Clifton <nickc@redhat.com>2002-08-29 06:49:35 +0000
commit86aba9dbfa7eb9bf07dd611c85e3cff31ebaa740 (patch)
tree28cea41b52ede49cce06280bbf5c3702ba3a0df4 /gas/doc
parent6ba3d7ed59de300442a9273d85c7a178e2296c3d (diff)
downloadgdb-86aba9dbfa7eb9bf07dd611c85e3cff31ebaa740.zip
gdb-86aba9dbfa7eb9bf07dd611c85e3cff31ebaa740.tar.gz
gdb-86aba9dbfa7eb9bf07dd611c85e3cff31ebaa740.tar.bz2
Add linker relaxation to v850 toolchain
Diffstat (limited to 'gas/doc')
-rw-r--r--gas/doc/c-v850.texi23
1 files changed, 22 insertions, 1 deletions
diff --git a/gas/doc/c-v850.texi b/gas/doc/c-v850.texi
index 4b36461..f67ad5c 100644
--- a/gas/doc/c-v850.texi
+++ b/gas/doc/c-v850.texi
@@ -62,6 +62,14 @@ routines used by the code produced by GCC for all versions of the v850
architecture, together with support routines only used by the V850E
architecture.
+@cindex @code{-mrelax} command line option, V850
+@item -mrelax
+Enables relaxation. This allows the .longcall and .longjump pseudo
+ops to be used in the assembler source code. These ops label sections
+of code which are either a long function call or a long branch. The
+assembler will then flag these sections of code and the linker will
+attempt to relax them.
+
@end table
@@ -354,10 +362,23 @@ example:
will put the call the function whoes address is held in the call table
at the location labeled 'table_func1'.
+@cindex @code{longcall} pseudo-op, V850
+@item .longcall @code{name}
+Indicates that the following sequence of instructions is a long call
+to function @code{name}. The linker will attempt to shorten this call
+sequence if @code{name} is within a 22bit offset of the call. Only
+valid if the @code{-mrelax} command line switch has been enabled.
+
+@cindex @code{longjump} pseudo-op, V850
+@item .longjump @code{name}
+Indicates that the following sequence of instructions is a long jump
+to label @code{name}. The linker will attempt to shorten this code
+sequence if @code{name} is within a 22bit offset of the jump. Only
+valid if the @code{-mrelax} command line switch has been enabled.
+
@end table
For information on the V850 instruction set, see @cite{V850
Family 32-/16-Bit single-Chip Microcontroller Architecture Manual} from NEC.
Ltd.
-