mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-12 18:51:30 +08:00
arm config fix from Richard Earnshaw
This commit is contained in:
@ -6,6 +6,11 @@ Wed 31 May 17:49:18 1995 Pat Rankin (rankin@eql.caltech.edu)
|
|||||||
(vms_write_object_file (GSD symbol loop, case N_DATA)): Never
|
(vms_write_object_file (GSD symbol loop, case N_DATA)): Never
|
||||||
output symbol definitions for local numeric labels.
|
output symbol definitions for local numeric labels.
|
||||||
|
|
||||||
|
Tue May 30 18:29:10 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
|
||||||
|
|
||||||
|
* configure.in (architecture variants, cases armeb and arm*): Remove
|
||||||
|
spaces round assignment to endian.
|
||||||
|
|
||||||
Tue May 30 12:31:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
|
Tue May 30 12:31:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
|
||||||
|
|
||||||
* write.c (write_object_file): Check for undefined local dollar
|
* write.c (write_object_file): Check for undefined local dollar
|
||||||
|
54
gas/configure
vendored
54
gas/configure
vendored
@ -554,6 +554,8 @@ te_file=generic
|
|||||||
|
|
||||||
# check for architecture variants
|
# check for architecture variants
|
||||||
case ${target_cpu} in
|
case ${target_cpu} in
|
||||||
|
armeb) cpu_type=arm endian=big ;;
|
||||||
|
arm*) cpu_tpye=arm endian=little ;;
|
||||||
hppa*) cpu_type=hppa ;;
|
hppa*) cpu_type=hppa ;;
|
||||||
i[45]86) cpu_type=i386 ;;
|
i[45]86) cpu_type=i386 ;;
|
||||||
m680[012346]0) cpu_type=m68k ;;
|
m680[012346]0) cpu_type=m68k ;;
|
||||||
@ -662,7 +664,16 @@ for this_target in $target $canon_targets ; do
|
|||||||
arc-*-elf*) fmt=elf bfd_gas=yes ;;
|
arc-*-elf*) fmt=elf bfd_gas=yes ;;
|
||||||
# end-sanitize-arc
|
# end-sanitize-arc
|
||||||
|
|
||||||
|
arm-*-riscix*) fmt=aout targ=arm-lit
|
||||||
|
emulation=riscix ;;
|
||||||
|
arm-*-aout) fmt=aout
|
||||||
|
case "$endian" in
|
||||||
|
big) targ=arm-big ;;
|
||||||
|
*) targ=arm-lit ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
arm-*-riscix*) fmt=aout ;;
|
arm-*-riscix*) fmt=aout ;;
|
||||||
|
arm-*-pe) fmt=coff targ=armcoff em=pe ;;
|
||||||
|
|
||||||
hppa-*-*elf*) fmt=elf em=hppa ;;
|
hppa-*-*elf*) fmt=elf em=hppa ;;
|
||||||
hppa-*-lites*) fmt=elf em=hppa ;;
|
hppa-*-lites*) fmt=elf em=hppa ;;
|
||||||
@ -694,7 +705,8 @@ for this_target in $target $canon_targets ; do
|
|||||||
i386-*-mach* | i386-*-gnu*)
|
i386-*-mach* | i386-*-gnu*)
|
||||||
fmt=aout em=mach bfd_gas=yes ;;
|
fmt=aout em=mach bfd_gas=yes ;;
|
||||||
i386-*-msdos*) fmt=aout ;;
|
i386-*-msdos*) fmt=aout ;;
|
||||||
|
i386-*-pe) fmt=coff targ=i386coff em=pe ;;
|
||||||
|
i386-*-*nt) fmt=coff targ=i386coff em=pe ;;
|
||||||
i960-*-bout) fmt=bout ;;
|
i960-*-bout) fmt=bout ;;
|
||||||
i960-*-coff) fmt=coff em=ic960 targ=ic960coff ;;
|
i960-*-coff) fmt=coff em=ic960 targ=ic960coff ;;
|
||||||
i960-*-nindy*) fmt=bout ;;
|
i960-*-nindy*) fmt=bout ;;
|
||||||
@ -834,14 +846,14 @@ for this_target in $target $canon_targets ; do
|
|||||||
# From target name and format, produce a list of supported emulations.
|
# From target name and format, produce a list of supported emulations.
|
||||||
|
|
||||||
case ${generic_target}-${fmt} in
|
case ${generic_target}-${fmt} in
|
||||||
mips-*-irix5*-*) emulation="mipsbelf mipslelf mipsbecoff mipslecoff" ;;
|
mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
|
||||||
mips-*-*-ecoff) case "$endian" in
|
mips-*-*-ecoff) case "$endian" in
|
||||||
big) emulation="mipsbecoff mipslecoff" ;;
|
big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
|
||||||
*) emulation="mipslecoff mipsbecoff" ;;
|
*) emulation="mipslecoff mipsbecoff mipsecoff" ;;
|
||||||
esac ;;
|
esac ;;
|
||||||
mips-*-*-elf) case "$endian" in
|
mips-*-*-elf) case "$endian" in
|
||||||
big) emulation="mipsbelf mipslelf" ;;
|
big) emulation="mipsbelf mipslelf mipself" ;;
|
||||||
*) emulation="mipslelf mipsbelf" ;;
|
*) emulation="mipslelf mipsbelf mipself" ;;
|
||||||
esac ;;
|
esac ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -1213,7 +1225,7 @@ else
|
|||||||
# On the NeXT, cc -E runs the code through the compiler's parser,
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
||||||
# not just through cpp.
|
# not just through cpp.
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1217 "configure"
|
#line 1229 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
Syntax Error
|
Syntax Error
|
||||||
@ -1227,7 +1239,7 @@ else
|
|||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
CPP="${CC-cc} -E -traditional-cpp"
|
CPP="${CC-cc} -E -traditional-cpp"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1231 "configure"
|
#line 1243 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
Syntax Error
|
Syntax Error
|
||||||
@ -1258,7 +1270,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1262 "configure"
|
#line 1274 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <$ac_hdr>
|
#include <$ac_hdr>
|
||||||
EOF
|
EOF
|
||||||
@ -1310,7 +1322,7 @@ else
|
|||||||
ac_cv_c_cross=yes
|
ac_cv_c_cross=yes
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1314 "configure"
|
#line 1326 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
main(){return(0);}
|
main(){return(0);}
|
||||||
EOF
|
EOF
|
||||||
@ -1333,7 +1345,7 @@ if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1337 "configure"
|
#line 1349 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
@ -1364,7 +1376,7 @@ if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1368 "configure"
|
#line 1380 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
@ -1422,7 +1434,7 @@ if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1426 "configure"
|
#line 1438 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#if defined(CRAY) && ! defined(CRAY2)
|
#if defined(CRAY) && ! defined(CRAY2)
|
||||||
webecray
|
webecray
|
||||||
@ -1450,7 +1462,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1454 "configure"
|
#line 1466 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func(); below. */
|
which can conflict with char $ac_func(); below. */
|
||||||
@ -1504,7 +1516,7 @@ else
|
|||||||
ac_cv_c_stack_direction=0
|
ac_cv_c_stack_direction=0
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1508 "configure"
|
#line 1520 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
find_stack_direction ()
|
find_stack_direction ()
|
||||||
{
|
{
|
||||||
@ -1546,7 +1558,7 @@ else
|
|||||||
ac_cv_c_inline=no
|
ac_cv_c_inline=no
|
||||||
for ac_kw in inline __inline__ __inline; do
|
for ac_kw in inline __inline__ __inline; do
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1550 "configure"
|
#line 1562 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
@ -1585,7 +1597,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1589 "configure"
|
#line 1601 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func(); below. */
|
which can conflict with char $ac_func(); below. */
|
||||||
@ -1638,7 +1650,7 @@ if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1642 "configure"
|
#line 1654 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -1695,7 +1707,7 @@ if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1699 "configure"
|
#line 1711 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
$gas_test_headers
|
$gas_test_headers
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
@ -1731,7 +1743,7 @@ if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1735 "configure"
|
#line 1747 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
$gas_test_headers
|
$gas_test_headers
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
@ -1770,7 +1782,7 @@ if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1774 "configure"
|
#line 1786 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#ifdef HAVE_ERRNO_H
|
#ifdef HAVE_ERRNO_H
|
||||||
|
@ -38,6 +38,8 @@ te_file=generic
|
|||||||
|
|
||||||
# check for architecture variants
|
# check for architecture variants
|
||||||
case ${target_cpu} in
|
case ${target_cpu} in
|
||||||
|
armeb) cpu_type=arm endian=big ;;
|
||||||
|
arm*) cpu_tpye=arm endian=little ;;
|
||||||
hppa*) cpu_type=hppa ;;
|
hppa*) cpu_type=hppa ;;
|
||||||
changequote(,)dnl
|
changequote(,)dnl
|
||||||
i[45]86) cpu_type=i386 ;;
|
i[45]86) cpu_type=i386 ;;
|
||||||
@ -135,7 +137,16 @@ changequote([,])dnl
|
|||||||
arc-*-elf*) fmt=elf bfd_gas=yes ;;
|
arc-*-elf*) fmt=elf bfd_gas=yes ;;
|
||||||
# end-sanitize-arc
|
# end-sanitize-arc
|
||||||
|
|
||||||
|
arm-*-riscix*) fmt=aout targ=arm-lit
|
||||||
|
emulation=riscix ;;
|
||||||
|
arm-*-aout) fmt=aout
|
||||||
|
case "$endian" in
|
||||||
|
big) targ=arm-big ;;
|
||||||
|
*) targ=arm-lit ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
arm-*-riscix*) fmt=aout ;;
|
arm-*-riscix*) fmt=aout ;;
|
||||||
|
arm-*-pe) fmt=coff targ=armcoff em=pe ;;
|
||||||
|
|
||||||
hppa-*-*elf*) fmt=elf em=hppa ;;
|
hppa-*-*elf*) fmt=elf em=hppa ;;
|
||||||
hppa-*-lites*) fmt=elf em=hppa ;;
|
hppa-*-lites*) fmt=elf em=hppa ;;
|
||||||
@ -167,7 +178,8 @@ changequote([,])dnl
|
|||||||
i386-*-mach* | i386-*-gnu*)
|
i386-*-mach* | i386-*-gnu*)
|
||||||
fmt=aout em=mach bfd_gas=yes ;;
|
fmt=aout em=mach bfd_gas=yes ;;
|
||||||
i386-*-msdos*) fmt=aout ;;
|
i386-*-msdos*) fmt=aout ;;
|
||||||
|
i386-*-pe) fmt=coff targ=i386coff em=pe ;;
|
||||||
|
i386-*-*nt) fmt=coff targ=i386coff em=pe ;;
|
||||||
i960-*-bout) fmt=bout ;;
|
i960-*-bout) fmt=bout ;;
|
||||||
i960-*-coff) fmt=coff em=ic960 targ=ic960coff ;;
|
i960-*-coff) fmt=coff em=ic960 targ=ic960coff ;;
|
||||||
i960-*-nindy*) fmt=bout ;;
|
i960-*-nindy*) fmt=bout ;;
|
||||||
@ -307,14 +319,14 @@ changequote([,])dnl
|
|||||||
# From target name and format, produce a list of supported emulations.
|
# From target name and format, produce a list of supported emulations.
|
||||||
|
|
||||||
case ${generic_target}-${fmt} in
|
case ${generic_target}-${fmt} in
|
||||||
mips-*-irix5*-*) emulation="mipsbelf mipslelf mipsbecoff mipslecoff" ;;
|
mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
|
||||||
mips-*-*-ecoff) case "$endian" in
|
mips-*-*-ecoff) case "$endian" in
|
||||||
big) emulation="mipsbecoff mipslecoff" ;;
|
big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
|
||||||
*) emulation="mipslecoff mipsbecoff" ;;
|
*) emulation="mipslecoff mipsbecoff mipsecoff" ;;
|
||||||
esac ;;
|
esac ;;
|
||||||
mips-*-*-elf) case "$endian" in
|
mips-*-*-elf) case "$endian" in
|
||||||
big) emulation="mipsbelf mipslelf" ;;
|
big) emulation="mipsbelf mipslelf mipself" ;;
|
||||||
*) emulation="mipslelf mipsbelf" ;;
|
*) emulation="mipslelf mipsbelf mipself" ;;
|
||||||
esac ;;
|
esac ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user