ld: Correct --dependency-file order

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.
This commit is contained in:
H.J. Lu 2020-06-24 06:39:03 -07:00
parent 2c8e370829
commit 4bf05d4a90
2 changed files with 7 additions and 2 deletions

View 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

View 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 },