diff options
author | Nick Clifton <nickc@redhat.com> | 2012-05-28 14:20:19 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-05-28 14:20:19 +0000 |
commit | 7bfd842d05042bfa697b1ded0c8f9bf3e58171fe (patch) | |
tree | c85993ba7425bfecd4c4644402f98e36969b4306 /gas/doc/as.texinfo | |
parent | e54e67a9e9744fbc370157d6ccd7f90859026ed3 (diff) | |
download | gdb-7bfd842d05042bfa697b1ded0c8f9bf3e58171fe.zip gdb-7bfd842d05042bfa697b1ded0c8f9bf3e58171fe.tar.gz gdb-7bfd842d05042bfa697b1ded0c8f9bf3e58171fe.tar.bz2 |
* read.c (read_symbol_name): New function. Reads a symbol names.
Allows escape codes in names.
(s_comm_internal): Use read_symbol_name.
(s_globl, s_lsym, s_set, s_weakref): Likewise.
* doc/as.texinfo: Document support for multibyte characters in
symbol names.
* gas/elf/syms.s: New test - checks the generation of multibyte
symbol names.
* gas/elf/syms.d: New file - expected readelf output.
* gas/elf/elf.exp: Add syms.
* readelf.c (print_symbol): Display multibyte characters in symbol
names.
(process_section_headers): Use print_symbol.
* ld-ifunc/ifunc-13a-i386.s: Fix use of .global directive.
* ld-ifunc/ifunc-15a-i385.s: Likewise.
Diffstat (limited to 'gas/doc/as.texinfo')
-rw-r--r-- | gas/doc/as.texinfo | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo index 694c806..72b5d05 100644 --- a/gas/doc/as.texinfo +++ b/gas/doc/as.texinfo @@ -2485,10 +2485,10 @@ On most machines, you can also use @code{$} in symbol names; exceptions are noted in @ref{Machine Dependencies}. @end ifset No symbol may begin with a digit. Case is significant. -There is no length limit: all characters are significant. Symbols are -delimited by characters not in that set, or by the beginning of a file -(since the source program must end with a newline, the end of a file is -not a possible symbol delimiter). @xref{Symbols}. +There is no length limit: all characters are significant. Multibyte characters +are supported. Symbols are delimited by characters not in that set, or by the +beginning of a file (since the source program must end with a newline, the end +of a file is not a possible symbol delimiter). @xref{Symbols}. @cindex length of symbols @node Statements @@ -3414,6 +3414,11 @@ on the H8/300), and underscores. Case of letters is significant: @code{foo} is a different symbol name than @code{Foo}. +Multibyte characters are supported. To generate a symbol name containing +multibyte characters enclose it within double quotes and use escape codes. cf +@xref{Strings}. Generating a multibyte symbol name from a label is not +currently supported. + Each symbol has exactly one name. Each name in an assembly language program refers to exactly one symbol. You may use that symbol name any number of times in a program. |