aboutsummaryrefslogtreecommitdiff
path: root/gas/doc
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2014-01-22 16:41:13 -0500
committerDJ Delorie <dj@redhat.com>2014-01-22 16:41:13 -0500
commit96b961024c796c5a609fd4d6a772b060eb3b6197 (patch)
tree30d3aac9493b2671f13696cb3316952f9c56f3b9 /gas/doc
parent7c84a0ca904a7a80262506f70ccbe09f99a68535 (diff)
downloadgdb-96b961024c796c5a609fd4d6a772b060eb3b6197.zip
gdb-96b961024c796c5a609fd4d6a772b060eb3b6197.tar.gz
gdb-96b961024c796c5a609fd4d6a772b060eb3b6197.tar.bz2
Add .refsym to msp430 backend
* config/tc-msp430.c (msp430_refsym): New: ".refsym <symbol>" * doc/c-msp430.texi (MSP430 Directives): Document it. The purpose of this patch is to provide a way for one object file to require the inclusion of another object, without having to allocate space for a .word address reference.
Diffstat (limited to 'gas/doc')
-rw-r--r--gas/doc/c-msp430.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/gas/doc/c-msp430.texi b/gas/doc/c-msp430.texi
index 77d6fd1..4a46961 100644
--- a/gas/doc/c-msp430.texi
+++ b/gas/doc/c-msp430.texi
@@ -263,6 +263,15 @@ command line option.
@item .profiler
This directive instructs assembler to add new profile entry to the object file.
+@cindex @code{refsym} directive, MSP 430
+@item .refsym
+This directive instructs assembler to add an undefined reference to
+the symbol following the directive. The maximum symbol name length is
+1023 characters. No relocation is created for this symbol; it will
+exist purely for pulling in object files from archives. Note that
+this reloc is not sufficient to prevent garbage collection; use a
+KEEP() directive in the linker file to preserve such objects.
+
@end table
@node MSP430 Opcodes