diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index bf36e1e1d..2442c5086 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,12 @@ +2010-06-15 Joseph Myers + + * tic6x-attrs.h: New. + * tic6x.h: Include elf/tic6x-attrs.h for attribute table. + (C6XABI_Tag_CPU_arch_none, C6XABI_Tag_CPU_arch_C62X, + C6XABI_Tag_CPU_arch_C67X, C6XABI_Tag_CPU_arch_C67XP, + C6XABI_Tag_CPU_arch_C64X, C6XABI_Tag_CPU_arch_C64XP, + C6XABI_Tag_CPU_arch_C674X): Define. + 2010-06-11 Tristan Gingold * ia64.h (EF_IA_64_VMS_COMCOD, EF_IA_64_VMS_COMCOD_SUCCESS) diff --git a/include/elf/tic6x-attrs.h b/include/elf/tic6x-attrs.h new file mode 100644 index 000000000..d5b8ee1ae --- /dev/null +++ b/include/elf/tic6x-attrs.h @@ -0,0 +1,25 @@ +/* TI C6X ELF attributes. + Copyright 2010 + Free Software Foundation, Inc. + + This file is part of BFD, the Binary File Descriptor library. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ + +/* Define the TAG macro before including this file; it takes a tag + name and value. */ + +TAG(Tag_C6XABI_Tag_CPU_arch, 2) diff --git a/include/elf/tic6x.h b/include/elf/tic6x.h index c4ec19356..a9b66ddf3 100644 --- a/include/elf/tic6x.h +++ b/include/elf/tic6x.h @@ -125,4 +125,26 @@ END_RELOC_NUMBERS (R_TIC6X_max) /* Segment cannot be further relocated. */ #define PHA_READONLY 0x2 +/* Build attributes. */ +enum + { +#define TAG(tag, value) tag = value, +#include "elf/tic6x-attrs.h" +#undef TAG + Tag_C6XABI_last + }; + +/* Values for Tag_C6XABI_Tag_CPU_arch. GNU-specific names pending any + ABI defining official names associated with the values. */ +enum + { + C6XABI_Tag_CPU_arch_none = 0, + C6XABI_Tag_CPU_arch_C62X = 1, + C6XABI_Tag_CPU_arch_C67X = 3, + C6XABI_Tag_CPU_arch_C67XP = 4, + C6XABI_Tag_CPU_arch_C64X = 6, + C6XABI_Tag_CPU_arch_C64XP = 7, + C6XABI_Tag_CPU_arch_C674X = 8 + }; + #endif /* _ELF_TIC6X_H */