aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-nds32.h
diff options
context:
space:
mode:
authorKuan-Lin Chen <kuanlinchentw@gmail.com>2018-02-23 14:25:25 +0800
committerKuan-Lin Chen <kuanlinchentw@gmail.com>2018-02-23 14:27:13 +0800
commite859f6558cc027261fb733e4e86938e1d31c13ca (patch)
tree39459de8d8ce2cd9678b35d349e6b23dd223bff9 /bfd/elf32-nds32.h
parent9c70c5223bbdfe1feac122d4b7606a46de5c22a5 (diff)
downloadgdb-e859f6558cc027261fb733e4e86938e1d31c13ca.zip
gdb-e859f6558cc027261fb733e4e86938e1d31c13ca.tar.gz
gdb-e859f6558cc027261fb733e4e86938e1d31c13ca.tar.bz2
nds32: Support target directive .ict_model.
Diffstat (limited to 'bfd/elf32-nds32.h')
-rw-r--r--bfd/elf32-nds32.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/elf32-nds32.h b/bfd/elf32-nds32.h
index 7e09e01..bf2e93f 100644
--- a/bfd/elf32-nds32.h
+++ b/bfd/elf32-nds32.h
@@ -46,6 +46,13 @@ extern "C" {
#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. */