Define SEC_MEP_VLIW in bfd/section.c
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 24 Apr 2015 12:40:23 +0000 (05:40 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 24 Apr 2015 12:40:23 +0000 (05:40 -0700)
Bits in section flags should only be defined in bfd/section.c.  This
patch moves SEC_MEP_VLIW to bfd/section.c.

bfd/

PR binutils/18316
* section.c (SEC_MEP_VLIW): New.
* bfd-in2.h: Regenerated.

include/elf/

PR binutils/18316
* mep.h (SEC_MEP_VLIW): Removed.

bfd/ChangeLog
bfd/bfd-in2.h
bfd/section.c
include/elf/ChangeLog
include/elf/mep.h

index f9aa3a7de9967324bdcec817d18e9525e9138099..b3dcd0ebee592a151414413cdf3903fc86cc7b13 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/18316
+       * section.c (SEC_MEP_VLIW): New.
+       * bfd-in2.h: Regenerated.
+
 2015-04-23  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/18277
index d4e2b9a81ca6c5813e2284809d9619626e168dfb..7c85fe823b8017373c85491504ce9669030bef59 100644 (file)
@@ -1409,6 +1409,9 @@ typedef struct bfd_section
      TMS320C54X only.  */
 #define SEC_TIC54X_CLINK 0x20000000
 
+  /* This section contains vliw code.  This is for Toshiba MeP only.  */
+#define SEC_MEP_VLIW 0x20000000
+
   /* Indicate that section has the no read flag set. This happens
      when memory read flag isn't set. */
 #define SEC_COFF_NOREAD 0x40000000
index cf63121a7288b56e44e034fef254176af472f57d..24422bfb47a9449cdff0948d8c675a72fb729f06 100644 (file)
@@ -354,6 +354,9 @@ CODE_FRAGMENT
 .     TMS320C54X only.  *}
 .#define SEC_TIC54X_CLINK 0x20000000
 .
+.  {* This section contains vliw code.  This is for Toshiba MeP only.  *}
+.#define SEC_MEP_VLIW 0x20000000
+.
 .  {* Indicate that section has the no read flag set. This happens
 .     when memory read flag isn't set. *}
 .#define SEC_COFF_NOREAD 0x40000000
index d66e507282c80d69319d770747dd3e58ee9c008e..2f2fc803caa5c01f3cc21423306abccad3fc584b 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/18316
+       * mep.h (SEC_MEP_VLIW): Removed.
+
 2015-04-09  Nick Clifton  <nickc@redhat.com>
 
        * rx.h (E_FLAG_RX_SINSNS_SET): New bit in e_flags field.
index a107dd0448fec480c350457002cc448da29bedf0..ae92be454b044e71625a70a24236713a7b06c9f7 100644 (file)
 
 #define SHF_MEP_VLIW           0x10000000      /* contains vliw code */
 
-/* This bit is reserved by BFD for processor specific stuff.  Name
-   it properly so that we can easily stay consistent elsewhere.  */
-#define SEC_MEP_VLIW           SEC_TIC54X_BLOCK
-
 #include "elf/reloc-macros.h"
 
 /* Note: The comments in this file are used by bfd/mep-relocs.pl to
This page took 0.033837 seconds and 4 git commands to generate.