From: Linda Zhang Date: Fri, 20 Nov 2020 11:07:26 +0000 (+0000) Subject: Add a warning to dllwrap that it is deprecated. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8881640c8071b04fa2566f21eb2a47e691caf11c;p=binutils-gdb.git Add a warning to dllwrap that it is deprecated. PR 20979 * dllwrap.c (main): Deprecate and warn the use of dllwrap. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4acc0d479a1..d6af8dfe73d 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2020-11-20 Linda Zhang + + PR 20979 + * dllwrap.c (main): Deprecate and warn the use of dllwrap. + 2020-11-20 Jozef Lawrynowicz * testsuite/binutils-all/readelf-maskos-1a.d: Fix test for unrecognized diff --git a/binutils/dllwrap.c b/binutils/dllwrap.c index c8cdf843019..97c8cb86f24 100644 --- a/binutils/dllwrap.c +++ b/binutils/dllwrap.c @@ -639,6 +639,9 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); + warn (_("WARNING: %s is deprecated, use gcc -shared or ld -shared instead\n"), + prog_name); + expandargv (&argc, &argv); saved_argv = (char **) xmalloc (argc * sizeof (char*));