Remove RGBLINK's unimplemented '-s' "smart linking" placeholder flag

This commit is contained in:
Rangi42
2024-03-25 11:36:23 -04:00
parent cb59119881
commit 3568418c5d
4 changed files with 2 additions and 14 deletions

View File

@@ -149,7 +149,7 @@ void argErr(char flag, char const *fmt, ...) {
}
// Short options
static char const *optstring = "dl:m:Mn:O:o:p:S:s:tVvWwx";
static char const *optstring = "dl:m:Mn:O:o:p:S:tVvWwx";
/*
* Equivalent long options
@@ -171,7 +171,6 @@ static option const longopts[] = {
{"output", required_argument, nullptr, 'o'},
{"pad", required_argument, nullptr, 'p'},
{"scramble", required_argument, nullptr, 'S'},
{"smart", required_argument, nullptr, 's'},
{"tiny", no_argument, nullptr, 't'},
{"version", no_argument, nullptr, 'V'},
{"verbose", no_argument, nullptr, 'v'},
@@ -184,7 +183,7 @@ static void printUsage() {
fputs(
"Usage: rgblink [-dMtVvwx] [-l script] [-m map_file] [-n sym_file]\n"
" [-O overlay_file] [-o out_file] [-p pad_value]\n"
" [-S spec] [-s symbol] <file> ...\n"
" [-S spec] <file> ...\n"
"Useful options:\n"
" -l, --linkerscript <path> set the input linker script\n"
" -m, --map <path> set the output map file\n"
@@ -393,10 +392,6 @@ int main(int argc, char *argv[]) {
case 'S':
parseScrambleSpec(musl_optarg);
break;
case 's':
// TODO: implement "smart linking" with `-s`
warning(nullptr, 0, "Nobody has any idea what `-s` does");
break;
case 't':
is32kMode = true;
break;