This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Patch to add objdump to TOOL_PROGS
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: binutils at gcc dot gnu dot org
- Date: Thu, 17 Feb 2005 20:50:25 +0000 (UTC)
- Subject: Patch to add objdump to TOOL_PROGS
This patch adds objdump to TOOL_PROGS so a link to it gets installed
in tooldir.
A case where this is of use is building and testing GCC on
hppa64-hpux, where tooldir followed by bindir are at the start of the
PATH with both 32-bit and 64-bit binutils installed under the same
prefix; objdump in bindir is 32-bit HPPA (SOM) objdump and the 64-bit
objdump is bindir/hppa64-hp-hpux11.xx-objdump. The GCC testsuite
expects to find objdump (not target-objdump) in the PATH, if not
building binutils in a unified tree, in order to identify the object
file format, so it finds the SOM objdump which fails to identify the
64-bit file format as ELF. Having a link to objdump in tooldir solves
this problem.
Tested on i686-pc-linux-gnu. OK to commit?
--
Joseph S. Myers
joseph@codesourcery.com
2005-02-17 Joseph S. Myers <joseph@codesourcery.com>
* Makefile.am (TOOL_PROGS): Add objdump.
* Makefile.in: Regenerate.
diff -rupN binutils.orig/Makefile.am binutils/Makefile.am
--- binutils.orig/Makefile.am 2004-12-01 10:54:51.000000000 +0000
+++ binutils/Makefile.am 2005-02-17 20:35:23.000000000 +0000
@@ -63,7 +63,7 @@ noinst_PROGRAMS = $(NM_PROG) $(STRIP_PRO
EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(DLLWRAP_PROG)
# Stuff that goes in tooldir/ if appropriate.
-TOOL_PROGS = nm-new strip-new ar ranlib dlltool
+TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump
BASEDIR = $(srcdir)/..
BFDDIR = $(BASEDIR)/bfd
diff -rupN binutils.orig/Makefile.in binutils/Makefile.in
--- binutils.orig/Makefile.in 2004-12-01 10:54:51.000000000 +0000
+++ binutils/Makefile.in 2005-02-17 20:35:39.000000000 +0000
@@ -184,7 +184,7 @@ noinst_PROGRAMS = $(NM_PROG) $(STRIP_PRO
EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(DLLWRAP_PROG)
# Stuff that goes in tooldir/ if appropriate.
-TOOL_PROGS = nm-new strip-new ar ranlib dlltool
+TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump
BASEDIR = $(srcdir)/..
BFDDIR = $(BASEDIR)/bfd