From: H.J. Lu Date: Fri, 24 Apr 2015 12:40:23 +0000 (-0700) Subject: Define SEC_MEP_VLIW in bfd/section.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9361e6307bd1cf4f8f7c9de5375719ede8caa0cb;p=binutils-gdb.git Define SEC_MEP_VLIW in bfd/section.c 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f9aa3a7de99..b3dcd0ebee5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2015-04-24 H.J. Lu + + PR binutils/18316 + * section.c (SEC_MEP_VLIW): New. + * bfd-in2.h: Regenerated. + 2015-04-23 H.J. Lu PR ld/18277 diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index d4e2b9a81ca..7c85fe823b8 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -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 diff --git a/bfd/section.c b/bfd/section.c index cf63121a728..24422bfb47a 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -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 diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index d66e507282c..2f2fc803caa 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,8 @@ +2015-04-24 H.J. Lu + + PR binutils/18316 + * mep.h (SEC_MEP_VLIW): Removed. + 2015-04-09 Nick Clifton * rx.h (E_FLAG_RX_SINSNS_SET): New bit in e_flags field. diff --git a/include/elf/mep.h b/include/elf/mep.h index a107dd0448f..ae92be454b0 100644 --- a/include/elf/mep.h +++ b/include/elf/mep.h @@ -24,10 +24,6 @@ #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