GNU Binutils with patches for OS216
Revision | e0e87b8c940625b72988c476f1dd36a33e64bfa6 (tree) |
---|---|
Time | 2006-11-13 18:59:52 |
Author | Nathan Sidwell <nathan@code...> |
Commiter | Nathan Sidwell |
binutils/
* Makefile.am (TOOL_PROGS): Set from @TOOL_PROGS@.
(install-exec-local): Protect against TOOL_PROGS being empty.
* configure.in (TOOL_PROGS): New, set it appropriately.
* Makefile.in: Rebuilt.
* configure: Rebuilt.
@@ -1,5 +1,15 @@ | ||
1 | +2006-11-10 Nathan Sidwell <nathan@codesourcery.com> | |
2 | + | |
3 | + binutils/ | |
4 | + * Makefile.am (TOOL_PROGS): Set from @TOOL_PROGS@. | |
5 | + (install-exec-local): Protect against TOOL_PROGS being empty. | |
6 | + * configure.in (TOOL_PROGS): New, set it appropriately. | |
7 | + * Makefile.in: Rebuilt. | |
8 | + * configure: Rebuilt. | |
9 | + | |
1 | 10 | 2006-11-08 Vladimir Prus <vladimir@codesourcery.com> |
2 | 11 | |
12 | + libiberty/ | |
3 | 13 | * pex-win32.c (no_suffixes): Remove. |
4 | 14 | (std_suffixes): Add "" as first element. |
5 | 15 | (find_executable): Remove detection of already-present |
@@ -64,7 +64,7 @@ noinst_PROGRAMS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG) | ||
64 | 64 | EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(DLLWRAP_PROG) |
65 | 65 | |
66 | 66 | # Stuff that goes in tooldir/ if appropriate. |
67 | -TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump | |
67 | +TOOL_PROGS = @TOOL_PROGS@ | |
68 | 68 | |
69 | 69 | BASEDIR = $(srcdir)/.. |
70 | 70 | BFDDIR = $(BASEDIR)/bfd |
@@ -390,8 +390,8 @@ install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS) | ||
390 | 390 | else :; fi; \ |
391 | 391 | done |
392 | 392 | $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin |
393 | - for i in $(TOOL_PROGS); do \ | |
394 | - if [ -f $$i$(EXEEXT) ]; then \ | |
393 | + for i in . $(TOOL_PROGS); do \ | |
394 | + if [ $$i != . ] && [ -f $$i$(EXEEXT) ]; then \ | |
395 | 395 | j=`echo $$i | sed -e 's/-new//'`; \ |
396 | 396 | k=`echo $$j | sed '$(transform)'`; \ |
397 | 397 | if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \ |
@@ -396,7 +396,7 @@ SRCONV_PROG = srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT) | ||
396 | 396 | PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRINGS_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@ $(ADDR2LINE_PROG) $(READELF_PROG) @BUILD_DLLWRAP@ @BUILD_MISC@ |
397 | 397 | |
398 | 398 | # Stuff that goes in tooldir/ if appropriate. |
399 | -TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump | |
399 | +TOOL_PROGS = @TOOL_PROGS@ | |
400 | 400 | BASEDIR = $(srcdir)/.. |
401 | 401 | BFDDIR = $(BASEDIR)/bfd |
402 | 402 | INCDIR = $(BASEDIR)/include |
@@ -1142,8 +1142,8 @@ install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS) | ||
1142 | 1142 | else :; fi; \ |
1143 | 1143 | done |
1144 | 1144 | $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin |
1145 | - for i in $(TOOL_PROGS); do \ | |
1146 | - if [ -f $$i$(EXEEXT) ]; then \ | |
1145 | + for i in . $(TOOL_PROGS); do \ | |
1146 | + if [ $$i != . ] && [ -f $$i$(EXEEXT) ]; then \ | |
1147 | 1147 | j=`echo $$i | sed -e 's/-new//'`; \ |
1148 | 1148 | k=`echo $$j | sed '$(transform)'`; \ |
1149 | 1149 | if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \ |
@@ -309,7 +309,7 @@ ac_includes_default="\ | ||
309 | 309 | # include <unistd.h> |
310 | 310 | #endif" |
311 | 311 | |
312 | -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL REPORT_BUGS_TO WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS' | |
312 | +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL REPORT_BUGS_TO WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS TOOL_PROGS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS' | |
313 | 313 | ac_subst_files='' |
314 | 314 | |
315 | 315 | # Initialize some variables set by options. |
@@ -10689,6 +10689,7 @@ BUILD_WINDRES= | ||
10689 | 10689 | BUILD_DLLWRAP= |
10690 | 10690 | BUILD_MISC= |
10691 | 10691 | OBJDUMP_DEFS= |
10692 | +TOOL_PROGS="nm-new strip-new ar ranlib dlltool objdump" | |
10692 | 10693 | |
10693 | 10694 | for targ in $target $canon_targets |
10694 | 10695 | do |
@@ -10697,6 +10698,7 @@ do | ||
10697 | 10698 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' |
10698 | 10699 | BUILD_SRCONV='$(SRCONV_PROG)' |
10699 | 10700 | NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC" |
10701 | + TOOL_PROGS="$TOOL_PROGS objcopy" | |
10700 | 10702 | else |
10701 | 10703 | case $targ in |
10702 | 10704 | i[3-7]86*-*-netware*) |
@@ -10775,6 +10777,11 @@ do | ||
10775 | 10777 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF" |
10776 | 10778 | ;; |
10777 | 10779 | esac |
10780 | + case $targ in | |
10781 | + *-uclinux) | |
10782 | + TOOL_PROGS="$TOOL_PROGS objcopy" | |
10783 | + ;; | |
10784 | + esac | |
10778 | 10785 | fi |
10779 | 10786 | done |
10780 | 10787 |
@@ -10782,6 +10789,10 @@ if test "${with_windres+set}" = set; then | ||
10782 | 10789 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
10783 | 10790 | fi |
10784 | 10791 | |
10792 | +# Remove duplicates from TOOL_PROGS | |
10793 | +TOOL_PROGS="`echo $TOOL_PROGS | tr ' ' '\n' | sort -u | tr '\n' ' '`" | |
10794 | + | |
10795 | + | |
10785 | 10796 | |
10786 | 10797 | |
10787 | 10798 |
@@ -11586,6 +11597,7 @@ s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t | ||
11586 | 11597 | s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t |
11587 | 11598 | s,@BUILD_MISC@,$BUILD_MISC,;t t |
11588 | 11599 | s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t |
11600 | +s,@TOOL_PROGS@,$TOOL_PROGS,;t t | |
11589 | 11601 | s,@EMULATION@,$EMULATION,;t t |
11590 | 11602 | s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t |
11591 | 11603 | s,@datarootdir@,$datarootdir,;t t |
@@ -216,6 +216,7 @@ BUILD_WINDRES= | ||
216 | 216 | BUILD_DLLWRAP= |
217 | 217 | BUILD_MISC= |
218 | 218 | OBJDUMP_DEFS= |
219 | +TOOL_PROGS="nm-new strip-new ar ranlib dlltool objdump" | |
219 | 220 | |
220 | 221 | for targ in $target $canon_targets |
221 | 222 | do |
@@ -224,6 +225,7 @@ do | ||
224 | 225 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' |
225 | 226 | BUILD_SRCONV='$(SRCONV_PROG)' |
226 | 227 | NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC" |
228 | + TOOL_PROGS="$TOOL_PROGS objcopy" | |
227 | 229 | else |
228 | 230 | case $targ in |
229 | 231 | changequote(,)dnl |
@@ -310,6 +312,11 @@ changequote([,])dnl | ||
310 | 312 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF" |
311 | 313 | ;; |
312 | 314 | esac |
315 | + case $targ in | |
316 | + *-uclinux) | |
317 | + TOOL_PROGS="$TOOL_PROGS objcopy" | |
318 | + ;; | |
319 | + esac | |
313 | 320 | fi |
314 | 321 | done |
315 | 322 |
@@ -317,6 +324,9 @@ if test "${with_windres+set}" = set; then | ||
317 | 324 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
318 | 325 | fi |
319 | 326 | |
327 | +# Remove duplicates from TOOL_PROGS | |
328 | +TOOL_PROGS="`echo $TOOL_PROGS | tr ' ' '\012' | sort -u | tr '\012' ' '`" | |
329 | + | |
320 | 330 | AC_SUBST(NLMCONV_DEFS) |
321 | 331 | AC_SUBST(BUILD_NLMCONV) |
322 | 332 | AC_SUBST(BUILD_SRCONV) |
@@ -326,6 +336,7 @@ AC_SUBST(BUILD_WINDRES) | ||
326 | 336 | AC_SUBST(BUILD_DLLWRAP) |
327 | 337 | AC_SUBST(BUILD_MISC) |
328 | 338 | AC_SUBST(OBJDUMP_DEFS) |
339 | +AC_SUBST(TOOL_PROGS) | |
329 | 340 | |
330 | 341 | AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.]) |
331 | 342 |