Add a warning to dllwrap that it is deprecated.
authorLinda Zhang <lindasc@qq.com>
Fri, 20 Nov 2020 11:07:26 +0000 (11:07 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 20 Nov 2020 11:07:26 +0000 (11:07 +0000)
PR 20979
* dllwrap.c (main): Deprecate and warn the use of dllwrap.

binutils/ChangeLog
binutils/dllwrap.c

index 4acc0d479a12827fa74877a6e69a20d45d3ca7a2..d6af8dfe73d4cd041abc07c8b89615f678641535 100644 (file)
@@ -1,3 +1,8 @@
+2020-11-20  Linda Zhang  <lindasc@qq.com>
+
+       PR 20979
+       * dllwrap.c (main): Deprecate and warn the use of dllwrap.
+
 2020-11-20  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
 
        * testsuite/binutils-all/readelf-maskos-1a.d: Fix test for unrecognized
index c8cdf843019e88cf8e48f11d7a94d830ea1f9361..97c8cb86f248459ce4f5001dd9944a6c7053ae42 100644 (file)
@@ -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*));