diff options
author | midipix <writeonce@midipix.org> | 2025-06-03 10:11:24 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2025-06-03 15:16:50 +0000 |
commit | 663098e8be251c89181cc56503d7fb7ab2e8c1c5 (patch) | |
tree | c167f020c69ed1210829b9002d60195c566e6065 /src/output/pe_output_error.c | |
parent | c5c7073a522fc96ec5c0270de6d5e48154d5cd62 (diff) | |
download | perk-663098e8be251c89181cc56503d7fb7ab2e8c1c5.tar.bz2 perk-663098e8be251c89181cc56503d7fb7ab2e8c1c5.tar.xz |
pe_cmd_ar(): added command-line semantic verification.
Diffstat (limited to 'src/output/pe_output_error.c')
-rw-r--r-- | src/output/pe_output_error.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/output/pe_output_error.c b/src/output/pe_output_error.c index 1d818d1..9635d13 100644 --- a/src/output/pe_output_error.c +++ b/src/output/pe_output_error.c @@ -38,6 +38,14 @@ static const char * const pe_error_strings[PERK_ERR_CAP] = { [PERK_ERR_AR_NON_PE_MEMBERS] = "format of current archive member is not PE/COFF", [PERK_ERR_AR_MIXED_PE_MEMBERS] = "archive mixes objects of different architectures", [PERK_ERR_AR_NESTED_ARCHIVE] = "nested archives are currently not supported", + + [PERK_ERR_AR_MISSING_ACTION] = "missing action, which should be exactly one of [dqmrxpt]", + [PERK_ERR_AR_MULTIPLE_ACTIONS] = "exactly one action permitted, multiple actions specified", + [PERK_ERR_AR_MULTIPLE_ANCHORS] = "multiple anchors: may specify _before_ or _after_, but not both", + [PERK_ERR_AR_INVALID_ANCHORS] = "mismatched arguments: anchors are incompatible with the selected action", + [PERK_ERR_AR_MISSING_ANCHOR] = "missing anchor: <posname> provided, but no anchor specified", + [PERK_ERR_AR_NULL_POSNAME] = "null <posname> argument with [-a], [-b], or [-i]", + [PERK_ERR_AR_NULL_ARNAME] = "null <arname> argument", }; static const char * pe_output_error_header(const struct pe_error_info * erri) |