From 01aba636530d6c433166aad9791b7e85c2a8e6e1 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 25 Aug 1997 23:07:18 +0000 Subject: [PATCH] Added magic numbers for V850E and V850EQ. --- include/elf/.Sanitize | 52 +++++++++++++++++++++++++++++++++++++++++++ include/elf/ChangeLog | 13 +++++++++++ include/elf/common.h | 20 +++++++++++++---- 3 files changed, 81 insertions(+), 4 deletions(-) diff --git a/include/elf/.Sanitize b/include/elf/.Sanitize index 04f05d3bb65..808dc24e8bf 100644 --- a/include/elf/.Sanitize +++ b/include/elf/.Sanitize @@ -79,6 +79,58 @@ else fi v850_files="ChangeLog common.h" +if ( echo $* | grep keep\-v850eq > /dev/null ) ; then + for i in $v850_files ; do + if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping v850eq stuff in $i + fi + fi + done +else + for i in $v850_files ; do + if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"v850eq\" from $i... + fi + cp $i new + sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < $i > new + if [ -n "${safe}" -a ! -f .Recover/$i ] ; then + if [ -n "${verbose}" ] ; then + echo Caching $i in .Recover... + fi + mv $i .Recover + fi + mv new $i + fi + done +fi +if ( echo $* | grep keep\-v850e > /dev/null ) ; then + for i in $v850_files ; do + if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping v850eq stuff in $i + fi + fi + done +else + for i in $v850_files ; do + if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"v850e\" from $i... + fi + cp $i new + sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new + if [ -n "${safe}" -a ! -f .Recover/$i ] ; then + if [ -n "${verbose}" ] ; then + echo Caching $i in .Recover... + fi + mv $i .Recover + fi + mv new $i + fi + done +fi if ( echo $* | grep keep\-v850 > /dev/null ) ; then for i in $v850_files ; do if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 1b9ad8c77b0..dd6035f207c 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,16 @@ +start-sanitize-v850e +Mon Aug 25 16:06:47 1997 Nick Clifton + + * common.h (EM_CYGNUS_V850E): backend magic number for v850e. +start-sanitize-v850eq + * common.h (EM_CYGNUS_V850EQ): backend magic number for v850eq. +end-sanitize-v850eq +end-sanitize-v850e + +Mon Aug 18 11:05:23 1997 Nick Clifton + + * v850.h (reloc_type): Add 16 bit PC relative relocation. + Fri Aug 15 05:10:09 1997 Doug Evans * arc.h (enum reloc): Move here from elf32-arc.c. diff --git a/include/elf/common.h b/include/elf/common.h index 26f75f27cd0..47d5ad5ec64 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -106,15 +106,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Old version of PowerPC, this should be removed shortly. */ #define EM_PPC_OLD 17 -/* start-sanitize-arc */ /* Cygnus ARC ELF backend. Written in the absence of an ABI. */ #define EM_CYGNUS_ARC 0x9040 -/* end-sanitize-arc */ -/* start-sanitize-m32r */ /* Cygnus M32R ELF backend. Written in the absence of an ABI. */ #define EM_CYGNUS_M32R 0x9041 -/* end-sanitize-m32r */ /* Alpha backend magic number. Written in the absence of an ABI. */ #define EM_ALPHA 0x9026 @@ -130,6 +126,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* start-sanitize-v850 */ /* V850 backend magic number. Written in the absense of an ABI. */ #define EM_CYGNUS_V850 0x9080 +/* start-sanitize-v850e */ +#define EM_CYGNUS_V850E 0x908e +/* end-sanitize-v850e */ +/* start-sanitize-v850eq */ +#define EM_CYGNUS_V850EQ 0x908f +/* end-sanitize-v850eq */ /* end-sanitize-v850 */ /* mn10200 and mn10300 backend magic numbers. @@ -326,6 +328,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define VER_NEED_NONE 0 #define VER_NEED_CURRENT 1 +/* This flag appears in a Versym structure. It means that the symbol + is hidden, and is only visible with an explicit version number. + This is a GNU extension. */ + +#define VERSYM_HIDDEN 0x8000 + +/* This is the mask for the rest of the Versym information. */ + +#define VERSYM_VERSION 0x7fff + /* This is a special token which appears as part of a symbol name. It indictes that the rest of the name is actually the name of a version node, and is not part of the actual name. This is a GNU -- 2.30.2