From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12349 invoked by alias); 17 Feb 2005 20:50:33 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 12325 invoked from network); 17 Feb 2005 20:50:28 -0000 Received: from unknown (HELO mail.codesourcery.com) (65.74.133.9) by sourceware.org with SMTP; 17 Feb 2005 20:50:28 -0000 Received: (qmail 31592 invoked from network); 17 Feb 2005 20:50:27 -0000 Received: from localhost (HELO digraph.polyomino.org.uk) (joseph@127.0.0.1) by mail.codesourcery.com with DES-CBC3-SHA encrypted SMTP; 17 Feb 2005 20:50:27 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.44) id 1D1sbR-0000kk-Gi for binutils@gcc.gnu.org; Thu, 17 Feb 2005 20:50:25 +0000 Date: Fri, 18 Feb 2005 00:02:00 -0000 From: "Joseph S. Myers" X-X-Sender: jsm28@digraph.polyomino.org.uk To: binutils@gcc.gnu.org Subject: Patch to add objdump to TOOL_PROGS Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-02/txt/msg00411.txt.bz2 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 * 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