Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2018 16:28:50 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335213 - head/usr.bin/ldd
Message-ID:  <201806151628.w5FGSoh9011867@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri Jun 15 16:28:50 2018
New Revision: 335213
URL: https://svnweb.freebsd.org/changeset/base/335213

Log:
  ldd: reference readelf instead of objdump in warning message
  
  We have an obsolete GNU objdump 2.17.50 in the base system, which will
  be removed in the future.  Suggest readelf(1) for examining ELF files
  instead; for most use cases it is the preferred tool anyhow.
  
  PR:		229046
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/usr.bin/ldd/sods.c

Modified: head/usr.bin/ldd/sods.c
==============================================================================
--- head/usr.bin/ldd/sods.c	Fri Jun 15 16:25:36 2018	(r335212)
+++ head/usr.bin/ldd/sods.c	Fri Jun 15 16:28:50 2018	(r335213)
@@ -203,7 +203,7 @@ dump_file(const char *fname)
     file_base = (const char *) objbase;	/* Makes address arithmetic easier */
 
     if (IS_ELF(*(const Elf32_Ehdr*) align_struct(file_base))) {
-	warnx("%s: this is an ELF program; use objdump to examine", fname);
+	warnx("%s: this is an ELF program; use readelf to examine", fname);
 	++error_count;
 	munmap(objbase, sb.st_size);
 	return;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806151628.w5FGSoh9011867>