ld: Correct --dependency-file order
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 24 Jun 2020 13:39:03 +0000 (06:39 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 24 Jun 2020 13:39:03 +0000 (06:39 -0700)
Change ld --help output to

  -d, -dc, -dp                Force common symbols to be defined
  --dependency-file FILE      Write dependency file

instead of

  -d, -dc                     Force common symbols to be defined
  --dependency-file FILE, -dp Write dependency file

PR ld/26165
* lexsup.c (ld_options): Correct --dependency-file order.

ld/ChangeLog
ld/lexsup.c

index bf171da0fa9014b67519d8b48a3a8996cc87118b..6f586506b13d8de038407ebd6f20ababa0fd2c6f 100644 (file)
@@ -1,3 +1,8 @@
+2020-06-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/26165
+       * lexsup.c (ld_options): Correct --dependency-file order.
+
 2020-06-24  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/26083
index d6e9367e9f7a9075b5cb36fd36ed5fa759164fe2..58c6c078325b9544a8d60d9598093cbb8ab2806b 100644 (file)
@@ -111,10 +111,10 @@ static const struct ld_option ld_options[] =
     'c', N_("FILE"), N_("Read MRI format linker script"), TWO_DASHES },
   { {"dc", no_argument, NULL, 'd'},
     'd', NULL, N_("Force common symbols to be defined"), ONE_DASH },
-  { {"dependency-file", required_argument, NULL, OPTION_DEPENDENCY_FILE},
-    '\0', N_("FILE"), N_("Write dependency file"), TWO_DASHES },
   { {"dp", no_argument, NULL, 'd'},
     '\0', NULL, NULL, ONE_DASH },
+  { {"dependency-file", required_argument, NULL, OPTION_DEPENDENCY_FILE},
+    '\0', N_("FILE"), N_("Write dependency file"), TWO_DASHES },
   { {"force-group-allocation", no_argument, NULL,
      OPTION_FORCE_GROUP_ALLOCATION},
     '\0', NULL, N_("Force group members out of groups"), TWO_DASHES },