From 9458005a2e3bc68abbf1e8ea236b1db46848d78e Mon Sep 17 00:00:00 2001 From: emaste Date: Fri, 22 Jun 2018 00:30:24 +0000 Subject: [PATCH] MFC r335213: 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 Sponsored by: The FreeBSD Foundation --- usr.bin/ldd/sods.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/ldd/sods.c b/usr.bin/ldd/sods.c index fb70e9ff65a..d65b0c82899 100644 --- a/usr.bin/ldd/sods.c +++ b/usr.bin/ldd/sods.c @@ -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; -- 2.45.0