Automatic date update in version.in
[deliverable/binutils-gdb.git] / bfd / elf32-nds32.h
index 210a4d31e3230f45fd93a19568dd72c9e04a2055..bf2e93f581c535d801fc52076a733d9aa4bb551a 100644 (file)
@@ -1,5 +1,5 @@
 /* NDS32-specific support for 32-bit ELF.
-   Copyright (C) 2012-2015 Free Software Foundation, Inc.
+   Copyright (C) 2012-2018 Free Software Foundation, Inc.
    Contributed by Andes Technology Corporation.
 
    This file is part of BFD, the Binary File Descriptor library.
 #ifndef ELF32_NDS32_H
 #define ELF32_NDS32_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Relocation flags encoded in r_addend.  */
 
 /* Relocation flags for R_NDS32_ERLAX_ENTRY.  */
 #define R_NDS32_RELAX_ENTRY_EX9_FLAG                           (1 << 2)
 /* Enable IFC optimization for this section.  */
 #define R_NDS32_RELAX_ENTRY_IFC_FLAG                           (1 << 3)
+/* Two bits for ICT to comply with files without directive.  */
+/* ICT small model.  */
+#define R_NDS32_RELAX_ENTRY_ICT_SMALL                           (0x2 << 4)
+/* ICT large model.  */
+#define R_NDS32_RELAX_ENTRY_ICT_LARGE                           (0x3 << 4)
+/* Mask for get ict bits.  */
+#define R_NDS32_RELAX_ENTRY_ICT_MASK                            (0x3 << 4)
 
 
 /* Relocation flags for R_NDS32_INSN16.  */
@@ -103,10 +114,10 @@ enum
 extern void nds32_insertion_sort
   (void *, size_t, size_t, int (*) (const void *, const void *));
 
-extern int         nds32_elf_ex9_init (void);
-extern int         nds32_convert_32_to_16 (bfd *, uint32_t, uint16_t *, int *);
-extern int         nds32_convert_16_to_32 (bfd *, uint16_t, uint32_t *);
-extern void        bfd_elf32_nds32_set_target_option (struct bfd_link_info *,
+extern int        nds32_elf_ex9_init (void);
+extern int        nds32_convert_32_to_16 (bfd *, uint32_t, uint16_t *, int *);
+extern int        nds32_convert_16_to_32 (bfd *, uint16_t, uint32_t *);
+extern void       bfd_elf32_nds32_set_target_option (struct bfd_link_info *,
                                                      int, int, FILE *, int,
                                                      int, int, int, FILE *,
                                                      FILE *, int, int,
@@ -125,11 +136,6 @@ struct elf_nds32_link_hash_table
   struct elf_link_hash_table root;
 
   /* Short-cuts to get to dynamic linker sections.  */
-  asection *sgot;
-  asection *sgotplt;
-  asection *srelgot;
-  asection *splt;
-  asection *srelplt;
   asection *sdynbss;
   asection *srelbss;
 
@@ -152,4 +158,9 @@ struct elf_nds32_link_hash_table
   bfd_boolean ex9_loop_aware;  /* Ignore ex9 if inside a loop.  */
   bfd_boolean ifc_loop_aware;  /* Ignore ifc if inside a loop.  */
 };
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif
This page took 0.027109 seconds and 4 git commands to generate.