mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 14:59:31 +08:00
Initial ARC support.
This commit is contained in:
@ -31,6 +31,14 @@ else
|
|||||||
lose_these_too="${rce_files} ${lose_these_too}"
|
lose_these_too="${rce_files} ${lose_these_too}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
arc_files="cpu-arc.c elf32-arc.c"
|
||||||
|
|
||||||
|
if ( echo $* | grep keep\-arc > /dev/null ) ; then
|
||||||
|
keep_these_too="${arc_files} ${keep_these_too}"
|
||||||
|
else
|
||||||
|
lose_these_too="${arc_files} ${lose_these_too}"
|
||||||
|
fi
|
||||||
|
|
||||||
# All files listed between the "Things-to-keep:" line and the
|
# All files listed between the "Things-to-keep:" line and the
|
||||||
# "Files-to-sed:" line will be kept. All other files will be removed.
|
# "Files-to-sed:" line will be kept. All other files will be removed.
|
||||||
# Directories listed in this section will have their own Sanitize
|
# Directories listed in this section will have their own Sanitize
|
||||||
@ -291,6 +299,34 @@ else
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
arc_files="ChangeLog archures.c reloc.c targets.c config.bfd configure.in bfd-in2.h elfcode.h libbfd.h"
|
||||||
|
if ( echo $* | grep keep\-arc > /dev/null ) ; then
|
||||||
|
for i in $arc_files ; do
|
||||||
|
if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
|
||||||
|
if [ -n "${verbose}" ] ; then
|
||||||
|
echo Keeping arc stuff in $i
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
else
|
||||||
|
for i in $arc_files ; do
|
||||||
|
if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
|
||||||
|
if [ -n "${verbose}" ] ; then
|
||||||
|
echo Removing traces of \"arc\" from $i...
|
||||||
|
fi
|
||||||
|
cp $i new
|
||||||
|
sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/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
|
||||||
|
|
||||||
for i in * ; do
|
for i in * ; do
|
||||||
if test ! -d $i && (grep sanitize $i > /dev/null) ; then
|
if test ! -d $i && (grep sanitize $i > /dev/null) ; then
|
||||||
echo '***' Some mentions of Sanitize are still left in $i! 1>&2
|
echo '***' Some mentions of Sanitize are still left in $i! 1>&2
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
start-sanitize-arc
|
||||||
|
Tue Nov 29 17:14:21 1994 Doug Evans <dje@canuck.cygnus.com>
|
||||||
|
|
||||||
|
* archures.c: Initial support for the ARC.
|
||||||
|
* reloc.c, targets.c, config.bfd, configure.in, elfcode.h: Likewise.
|
||||||
|
* bfd-in2.h: Regenerated.
|
||||||
|
* libbfd.h: Likewise.
|
||||||
|
end-sanitize-arc
|
||||||
|
|
||||||
Tue Nov 29 14:00:19 1994 J.T. Conklin <jtc@.rtl.cygnus.com>
|
Tue Nov 29 14:00:19 1994 J.T. Conklin <jtc@.rtl.cygnus.com>
|
||||||
|
|
||||||
* config.bfd (i[345]86-*-freebsd*): Use i386-bsd as bfd_name.
|
* config.bfd (i[345]86-*-freebsd*): Use i386-bsd as bfd_name.
|
||||||
|
@ -1028,8 +1028,11 @@ enum bfd_architecture
|
|||||||
bfd_arch_arm, /* Advanced Risc Machines ARM */
|
bfd_arch_arm, /* Advanced Risc Machines ARM */
|
||||||
bfd_arch_ns32k, /* National Semiconductors ns32000 */
|
bfd_arch_ns32k, /* National Semiconductors ns32000 */
|
||||||
/* start-sanitize-rce */
|
/* start-sanitize-rce */
|
||||||
bfd_arch_rce, /* Experimental Motorola RCE */
|
bfd_arch_rce, /* Motorola RCE */
|
||||||
/* end-sanitize-rce */
|
/* end-sanitize-rce */
|
||||||
|
/* start-sanitize-arc */
|
||||||
|
bfd_arch_arc, /* Argonaut RISC Core */
|
||||||
|
/* end-sanitize-arc */
|
||||||
bfd_arch_last
|
bfd_arch_last
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1510,6 +1513,15 @@ not stored in the instruction. */
|
|||||||
BFD_RELOC_ARM_SWI,
|
BFD_RELOC_ARM_SWI,
|
||||||
BFD_RELOC_ARM_MULTI,
|
BFD_RELOC_ARM_MULTI,
|
||||||
BFD_RELOC_ARM_CP_OFF_IMM,
|
BFD_RELOC_ARM_CP_OFF_IMM,
|
||||||
|
/* start-sanitize-arc */
|
||||||
|
|
||||||
|
/* Argonaut RISC Core (ARC) relocs.
|
||||||
|
ARC 22 bit pc-relative branch. The lowest two bits must be zero and are
|
||||||
|
not stored in the instruction. High 20 bits installed in bits 7 through 26
|
||||||
|
of instruction. */
|
||||||
|
BFD_RELOC_ARC_B22_PCREL,
|
||||||
|
/* end-sanitize-arc */
|
||||||
|
|
||||||
BFD_RELOC_UNUSED };
|
BFD_RELOC_UNUSED };
|
||||||
typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;
|
typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;
|
||||||
const struct reloc_howto_struct *
|
const struct reloc_howto_struct *
|
||||||
|
Reference in New Issue
Block a user