aboutsummaryrefslogtreecommitdiff
path: root/bfd
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
parent9c70c5223bbdfe1feac122d4b7606a46de5c22a5 (diff)
downloadgdb-e859f6558cc027261fb733e4e86938e1d31c13ca.zip
gdb-e859f6558cc027261fb733e4e86938e1d31c13ca.tar.gz
gdb-e859f6558cc027261fb733e4e86938e1d31c13ca.tar.bz2
nds32: Support target directive .ict_model.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf32-nds32.h7
2 files changed, 11 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 62b68dc..b00836c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
+
+ * elf32-nds32.h: Define mask for ict_model.
+
2018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
* elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
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. */