* coff-sh.c (coff_small_object_p): New static function.
(coff_small_new_section_hook): New static function. (bfd_coff_small_swap_table): New static const structure. (coff_small_close_and_cleanup): Define. (coff_small_bfd_free_cached_info): Define. (coff_small_get_section_contents): Define. (coff_small_get_section_contents_in_window): Define. (shcoff_small_vec): New static structure. (shlcoff_small_vec): New static structure. * targets.c (bfd_target_vector): Add shcoff_small_vec and shlcoff_small_vec. * config.bfd (sh-*-elf*): Add shcoff_small_vec and shlcoff_small_vec to targ_selvecs. (sh-*-*): Likewise. * configure.in: Add shcoff_small_vec and shlcoff_small_vec cases. * configure: Rebuild. PR 13580.
This commit is contained in:
parent
a259afccd8
commit
18ed85fd7a
4 changed files with 39 additions and 16 deletions
|
@ -1,3 +1,22 @@
|
||||||
|
Wed Oct 22 16:08:45 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* coff-sh.c (coff_small_object_p): New static function.
|
||||||
|
(coff_small_new_section_hook): New static function.
|
||||||
|
(bfd_coff_small_swap_table): New static const structure.
|
||||||
|
(coff_small_close_and_cleanup): Define.
|
||||||
|
(coff_small_bfd_free_cached_info): Define.
|
||||||
|
(coff_small_get_section_contents): Define.
|
||||||
|
(coff_small_get_section_contents_in_window): Define.
|
||||||
|
(shcoff_small_vec): New static structure.
|
||||||
|
(shlcoff_small_vec): New static structure.
|
||||||
|
* targets.c (bfd_target_vector): Add shcoff_small_vec and
|
||||||
|
shlcoff_small_vec.
|
||||||
|
* config.bfd (sh-*-elf*): Add shcoff_small_vec and
|
||||||
|
shlcoff_small_vec to targ_selvecs.
|
||||||
|
(sh-*-*): Likewise.
|
||||||
|
* configure.in: Add shcoff_small_vec and shlcoff_small_vec cases.
|
||||||
|
* configure: Rebuild.
|
||||||
|
|
||||||
Mon Oct 20 15:01:27 1997 Klaus K"ampf <kkaempf@progis.de>
|
Mon Oct 20 15:01:27 1997 Klaus K"ampf <kkaempf@progis.de>
|
||||||
|
|
||||||
* evax-egsd.c: Weak symbols are global.
|
* evax-egsd.c: Weak symbols are global.
|
||||||
|
|
|
@ -467,12 +467,12 @@ case "${targ}" in
|
||||||
|
|
||||||
sh-*-elf* | sh-*-rtems*)
|
sh-*-elf* | sh-*-rtems*)
|
||||||
targ_defvec=bfd_elf32_sh_vec
|
targ_defvec=bfd_elf32_sh_vec
|
||||||
targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec"
|
targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
|
||||||
targ_underscore=yes
|
targ_underscore=yes
|
||||||
;;
|
;;
|
||||||
sh-*-*)
|
sh-*-*)
|
||||||
targ_defvec=shcoff_vec
|
targ_defvec=shcoff_vec
|
||||||
targ_selvecs="shcoff_vec shlcoff_vec"
|
targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
|
||||||
targ_underscore=yes
|
targ_underscore=yes
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
28
bfd/configure
vendored
28
bfd/configure
vendored
|
@ -2684,6 +2684,8 @@ do
|
||||||
ppcboot_vec) tb="$tb ppcboot.lo" ;;
|
ppcboot_vec) tb="$tb ppcboot.lo" ;;
|
||||||
shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
||||||
shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
||||||
|
shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
||||||
|
shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
||||||
som_vec) tb="$tb som.lo" ;;
|
som_vec) tb="$tb som.lo" ;;
|
||||||
sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
|
sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
|
||||||
sparclinux_vec) tb="$tb sparclinux.lo aout32.lo stab-syms.lo" ;;
|
sparclinux_vec) tb="$tb sparclinux.lo aout32.lo stab-syms.lo" ;;
|
||||||
|
@ -2783,17 +2785,17 @@ for ac_hdr in unistd.h
|
||||||
do
|
do
|
||||||
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
||||||
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
||||||
echo "configure:2787: checking for $ac_hdr" >&5
|
echo "configure:2789: checking for $ac_hdr" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
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 2792 "configure"
|
#line 2794 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <$ac_hdr>
|
#include <$ac_hdr>
|
||||||
EOF
|
EOF
|
||||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||||
{ (eval echo configure:2797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
{ (eval echo configure:2799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||||
ac_err=`grep -v '^ *+' conftest.out`
|
ac_err=`grep -v '^ *+' conftest.out`
|
||||||
if test -z "$ac_err"; then
|
if test -z "$ac_err"; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
|
@ -2822,12 +2824,12 @@ done
|
||||||
for ac_func in getpagesize
|
for ac_func in getpagesize
|
||||||
do
|
do
|
||||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||||
echo "configure:2826: checking for $ac_func" >&5
|
echo "configure:2828: checking for $ac_func" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
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 2831 "configure"
|
#line 2833 "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. */
|
||||||
|
@ -2850,7 +2852,7 @@ $ac_func();
|
||||||
|
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:2854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_func_$ac_func=yes"
|
eval "ac_cv_func_$ac_func=yes"
|
||||||
else
|
else
|
||||||
|
@ -2875,7 +2877,7 @@ fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
||||||
echo "configure:2879: checking for working mmap" >&5
|
echo "configure:2881: checking for working mmap" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
|
@ -2883,7 +2885,7 @@ else
|
||||||
ac_cv_func_mmap_fixed_mapped=no
|
ac_cv_func_mmap_fixed_mapped=no
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2887 "configure"
|
#line 2889 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
/* Thanks to Mike Haertel and Jim Avera for this test.
|
/* Thanks to Mike Haertel and Jim Avera for this test.
|
||||||
|
@ -3023,7 +3025,7 @@ main()
|
||||||
}
|
}
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:3027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||||
then
|
then
|
||||||
ac_cv_func_mmap_fixed_mapped=yes
|
ac_cv_func_mmap_fixed_mapped=yes
|
||||||
else
|
else
|
||||||
|
@ -3048,12 +3050,12 @@ fi
|
||||||
for ac_func in madvise mprotect
|
for ac_func in madvise mprotect
|
||||||
do
|
do
|
||||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||||
echo "configure:3052: checking for $ac_func" >&5
|
echo "configure:3054: checking for $ac_func" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
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 3057 "configure"
|
#line 3059 "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. */
|
||||||
|
@ -3076,7 +3078,7 @@ $ac_func();
|
||||||
|
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
if { (eval echo configure:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_func_$ac_func=yes"
|
eval "ac_cv_func_$ac_func=yes"
|
||||||
else
|
else
|
||||||
|
@ -3131,7 +3133,7 @@ EOF
|
||||||
# Ultrix sh set writes to stderr and can't be redirected directly,
|
# Ultrix sh set writes to stderr and can't be redirected directly,
|
||||||
# and sets the high bit in the cache file unless we assign to the vars.
|
# and sets the high bit in the cache file unless we assign to the vars.
|
||||||
(set) 2>&1 |
|
(set) 2>&1 |
|
||||||
case `(ac_space=' '; set) 2>&1` in
|
case `(ac_space=' '; set) 2>&1 | grep ac_space` in
|
||||||
*ac_space=\ *)
|
*ac_space=\ *)
|
||||||
# `set' does not quote correctly, so add quotes (double-quote substitution
|
# `set' does not quote correctly, so add quotes (double-quote substitution
|
||||||
# turns \\\\ into \\, and sed turns \\ into \).
|
# turns \\\\ into \\, and sed turns \\ into \).
|
||||||
|
|
|
@ -375,7 +375,7 @@ selarchs="$f"
|
||||||
# Target backend .o files.
|
# Target backend .o files.
|
||||||
tb=
|
tb=
|
||||||
|
|
||||||
elf="elf.lo elflink.lo"
|
elf="elflink.lo"
|
||||||
|
|
||||||
for vec in $selvecs
|
for vec in $selvecs
|
||||||
do
|
do
|
||||||
|
@ -497,6 +497,8 @@ do
|
||||||
ppcboot_vec) tb="$tb ppcboot.lo" ;;
|
ppcboot_vec) tb="$tb ppcboot.lo" ;;
|
||||||
shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
||||||
shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
||||||
|
shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
||||||
|
shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
||||||
som_vec) tb="$tb som.lo" ;;
|
som_vec) tb="$tb som.lo" ;;
|
||||||
sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
|
sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
|
||||||
sparclinux_vec) tb="$tb sparclinux.lo aout32.lo stab-syms.lo" ;;
|
sparclinux_vec) tb="$tb sparclinux.lo aout32.lo stab-syms.lo" ;;
|
||||||
|
|
Loading…
Reference in a new issue