diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-05-09 14:20:52 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-05-09 14:20:52 +0000 |
commit | c9cd7160d84bd6219c9cbf155820a255b08f3e26 (patch) | |
tree | 07dec40b8cd87308ebf45bb67e2806e96a0a97e2 /gas/config/tc-sh64.c | |
parent | 433817dddee6fed37aa16714f124cbb359d530ee (diff) | |
download | gdb-c9cd7160d84bd6219c9cbf155820a255b08f3e26.zip gdb-c9cd7160d84bd6219c9cbf155820a255b08f3e26.tar.gz gdb-c9cd7160d84bd6219c9cbf155820a255b08f3e26.tar.bz2 |
2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
PR 936
* config/tc-sh64.c (sh64_fake_label): New.
* config/tc-sh64.h (TC_FAKE_LABEL): New.
* doc/internals.texi (TC_FAKE_LABEL): Document.
* write.c (TC_FAKE_LABEL): New.
(adjust_reloc_syms): Use it.
(write_object_file): Likewise.
Diffstat (limited to 'gas/config/tc-sh64.c')
-rw-r--r-- | gas/config/tc-sh64.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gas/config/tc-sh64.c b/gas/config/tc-sh64.c index 54f704f..a7a61fb 100644 --- a/gas/config/tc-sh64.c +++ b/gas/config/tc-sh64.c @@ -3513,3 +3513,18 @@ sh64_vtable_inherit (int ignore ATTRIBUTE_UNUSED) input_line_pointer = eol; } +int +sh64_fake_label (const char *name) +{ + size_t len; + + if (strcmp (name, FAKE_LABEL_NAME) == 0) + return 1; + + len = strlen (name); + if (len >= (sizeof (DATALABEL_SUFFIX) - 1)) + return strcmp (&name [len - sizeof (DATALABEL_SUFFIX) + 1], + DATALABEL_SUFFIX) == 0; + + return 0; +} |