forked from Imagelibrary/binutils-gdb
ld -w currently causes segmentation faults and other misbehaviour since it changes einfo with %F in the format string (fatal error) to not exit. This patch fixes that by introducing a new variant of einfo called "fatal" that always exits, and replaces all einfo calls using %F with a call to fatal without the %F. I considered modifying einfo to inspect the first 2 or 4 chars in the format string, looking for %F, but decided that was probably a bad idea given that translators might have moved the %F. It's also a little nicer to inform the compiler of a function that doesn't return. The patch also fixes some formatting nits, and makes use of %pA to print section names in a couple of places in aix.em.
26 lines
1.0 KiB
Bash
26 lines
1.0 KiB
Bash
PARSE_AND_LIST_OPTIONS_X86_64_LEVEL_REPORT='
|
|
fprintf (file, _("\
|
|
-z isa-level-report=[none|all|needed|used] (default: none)\n\
|
|
Report x86-64 ISA level\n"));
|
|
'
|
|
PARSE_AND_LIST_ARGS_CASE_Z_X86_64_LEVEL_REPORT='
|
|
else if (strncmp (optarg, "isa-level-report=", 17) == 0)
|
|
{
|
|
if (strcmp (optarg + 17, "none") == 0)
|
|
params.isa_level_report = isa_level_report_none;
|
|
else if (strcmp (optarg + 17, "all") == 0)
|
|
params.isa_level_report = (isa_level_report_needed
|
|
| isa_level_report_used);
|
|
else if (strcmp (optarg + 17, "needed") == 0)
|
|
params.isa_level_report = isa_level_report_needed;
|
|
else if (strcmp (optarg + 17, "used") == 0)
|
|
params.isa_level_report = isa_level_report_used;
|
|
else
|
|
fatal (_("%P: invalid option for -z isa-level-report=: %s\n"),
|
|
optarg + 17);
|
|
}
|
|
'
|
|
|
|
PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_X86_64_LEVEL_REPORT"
|
|
PARSE_AND_LIST_ARGS_CASE_Z="$PARSE_AND_LIST_ARGS_CASE_Z $PARSE_AND_LIST_ARGS_CASE_Z_X86_64_LEVEL_REPORT"
|