aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-cr16.h
diff options
context:
space:
mode:
authorM R Swami Reddy <MR.Swami.Reddy@nsc.com>2008-11-27 11:57:29 +0000
committerM R Swami Reddy <MR.Swami.Reddy@nsc.com>2008-11-27 11:57:29 +0000
commit0b9e228a4d60150dffd4cc1a6be185d80ff2021b (patch)
treeb653df08b5339d6f348df6dd260c2eedfe12ca9d /gas/config/tc-cr16.h
parent50e9934812fd3b3145eda37ae13a7d86afe6180d (diff)
downloadgdb-0b9e228a4d60150dffd4cc1a6be185d80ff2021b.zip
gdb-0b9e228a4d60150dffd4cc1a6be185d80ff2021b.tar.gz
gdb-0b9e228a4d60150dffd4cc1a6be185d80ff2021b.tar.bz2
* config/tc-cr16.h (GLOBAL_OFFSET_TABLE_NAME): Defined
* config/tc-cr16.c (md_pseudo_table): Add "4byte" directive to md_pseudo_table and accept @c prefix, same as long directive. (cr16_cons_fix_new): Initialize rtype to BFD_RELOC_UNUSED. config/tc-cr16.c (tc_gen_reloc): Declare a variable of type bfd_reloc_code_real_type and set it for GOT related relocations. (md_undefined_symbol): Defined (process_label_constant): Added checks for GOT/got and cGOT/cGOT prefixes with constant label and set the appropriate relocation type. * doc/c-cr16.texi (cr16-operand specifiers): Add got/GOT and cgot/cGOT.
Diffstat (limited to 'gas/config/tc-cr16.h')
-rw-r--r--gas/config/tc-cr16.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-cr16.h b/gas/config/tc-cr16.h
index 4b43f21..9aab15d 100644
--- a/gas/config/tc-cr16.h
+++ b/gas/config/tc-cr16.h
@@ -27,13 +27,14 @@
#define TARGET_BYTES_BIG_ENDIAN 0
+#define GLOBAL_OFFSET_TABLE_NAME "_GLOBAL_OFFSET_TABLE_"
+
#define TARGET_FORMAT "elf32-cr16"
#define TARGET_ARCH bfd_arch_cr16
#define WORKING_DOT_WORD
#define LOCAL_LABEL_PREFIX '.'
-#define md_undefined_symbol(s) 0
#define md_number_to_chars number_to_chars_littleendian
/* We do relaxing in the assembler as well as the linker. */