From cbc3424197053ac5c564dd40edfe4efa6801d93b Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Fri, 3 Jan 1997 00:31:19 +0000 Subject: [PATCH] Add v850.h --- include/elf/.Sanitize | 8 ++++++++ include/elf/ChangeLog | 6 ++++++ include/elf/v850.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 include/elf/v850.h diff --git a/include/elf/.Sanitize b/include/elf/.Sanitize index 9ffe17fd4fb..c59d17e4354 100644 --- a/include/elf/.Sanitize +++ b/include/elf/.Sanitize @@ -25,6 +25,14 @@ else lose_these_too="${arc_files} ${lose_these_too}" fi +v850_files="v850.h" + +if ( echo $* | grep keep\-v850 > /dev/null ) ; then + keep_these_too="${v850_files} ${keep_these_too}" +else + lose_these_too="${v850_files} ${lose_these_too}" +fi + m32r_files="m32r.h" if ( echo $* | grep keep\-m32r > /dev/null ) ; then diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 02d940fe1a2..170e2e98ca3 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,9 @@ +start-sanitize-v850 +Thu Jan 2 19:30:23 1997 Michael Meissner + + * v850.h: New file, provide V850 specific definitions. + +end-sanitize-v850 Tue Dec 31 14:44:32 1996 Ian Lance Taylor * common.h (DT_AUXILIARY): Define. diff --git a/include/elf/v850.h b/include/elf/v850.h new file mode 100644 index 00000000000..63748119708 --- /dev/null +++ b/include/elf/v850.h @@ -0,0 +1,42 @@ +/* V850 ELF support for BFD. + Copyright (C) 1997 Free Software Foundation, Inc. + Created by Michael Meissner, Cygnus Support + +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 2 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* This file holds definitions specific to the MIPS ELF ABI. Note + that most of this is not actually implemented by BFD. */ + +#ifndef _ELF_V850_H +#define _ELF_V850_H + +/* Flags for the other field */ +#define V850_OTHER_SDA 0x01 /* symbol had SDA relocations */ +#define V850_OTHER_ZDA 0x02 /* symbol had ZDA relocations */ +#define V850_OTHER_TDA 0x04 /* symbol had TDA relocations */ + +/* Processor specific section indices. These sections do not actually + exist. Symbols with a st_shndx field corresponding to one of these + values have a special meaning. */ + +/* Defined and allocated common symbol. Value is virtual address. If + relocated, alignment must be preserved. */ +#define SHN_V850_SCOMMON 0xff00 /* common referenced by sdaoff(label)[gp] */ +#define SHN_V850_ZCOMMON 0xff01 /* common referenced by zdaoff(label)[r0] */ +#define SHN_V850_TCOMMON 0xff02 /* common referenced by tdaoff(label)[ep] */ + +#endif /* _ELF_V850_H */ -- 2.30.2