x86-64: Properly encode and decode movsxd
[deliverable/binutils-gdb.git] / gas / config / tc-cr16.h
index 6d06151eb166822e221aaeed20b0f156f58cf02d..c382e7dc12f3124de54b3462817ca81a75fb4ff5 100644 (file)
@@ -1,5 +1,5 @@
 /* tc-cr16.h -- Header file for tc-cr16.c, the CR16 GAS port.
-   Copyright 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007-2020 Free Software Foundation, Inc.
 
    Contributed by M R Swami Reddy <MR.Swami.Reddy@nsc.com>
 
@@ -7,7 +7,7 @@
 
    GAS is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2, or (at your option)
+   the Free Software Foundation; either version 3, or (at your option)
    any later version.
 
    GAS is distributed in the hope that it will be useful,
 
 #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.  */
@@ -48,21 +49,23 @@ extern const struct relax_type md_relax_table[];
 #define TC_FORCE_RELOCATION(FIXP) cr16_force_relocation (FIXP)
 extern int cr16_force_relocation (struct fix *);
 
-/* Fixup debug sections since we will never relax them.  */
-#define TC_LINKRELAX_FIXUP(seg) (seg->flags & SEC_ALLOC)
+/* Fixup non-code sections since we will never relax them.  */
+#define TC_LINKRELAX_FIXUP(seg) \
+  ((seg->flags & (SEC_ALLOC | SEC_CODE)) == (SEC_ALLOC | SEC_CODE))
 
 /* CR16 instructions, with operands included, are a multiple
    of two bytes long.  */
 #define DWARF2_LINE_MIN_INSN_LENGTH 2
 
-extern void cr16_cons_fix_new (struct frag *, int, int, struct expressionS *);
+extern void cr16_cons_fix_new (struct frag *, int, int, struct expressionS *,
+                              bfd_reloc_code_real_type);
 /* This is called by emit_expr when creating a reloc for a cons.
-   We could use the definition there, except that we want to handle 
+   We could use the definition there, except that we want to handle
    the CR16 reloc type specially, rather than the BFD_RELOC type.  */
-#define TC_CONS_FIX_NEW(FRAG, OFF, LEN, EXP) \
-  cr16_cons_fix_new (FRAG, OFF, LEN, EXP
+#define TC_CONS_FIX_NEW(FRAG, OFF, LEN, EXP, RELOC)    \
+  cr16_cons_fix_new (FRAG, OFF, LEN, EXP, RELOC)
 
-/* Give an error if a frag containing code is not aligned to a 2-byte 
+/* Give an error if a frag containing code is not aligned to a 2-byte
    boundary.  */
 #define md_frag_check(FRAGP) \
   if ((FRAGP)->has_code                                                \
This page took 0.026595 seconds and 4 git commands to generate.