mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
make >32KiB default; replace "-t s" with "-t" (tiny?)
This commit is contained in:
@@ -42,8 +42,8 @@ usage(void)
|
|||||||
{
|
{
|
||||||
printf("xLink v" LINK_VERSION " (part of ASMotor " ASMOTOR_VERSION
|
printf("xLink v" LINK_VERSION " (part of ASMotor " ASMOTOR_VERSION
|
||||||
")\n\n");
|
")\n\n");
|
||||||
printf("usage: xlink [-l library] [-m mapfile] [-n symfile] [-o outfile] [-s symbol]\n");
|
printf("usage: xlink [-t] [-l library] [-m mapfile] [-n symfile] [-o outfile] [-s symbol]\n");
|
||||||
printf("\t [-t [g | s ] [-z pad_value] objectfile [...]\n");
|
printf("\t [-z pad_value] objectfile [...]\n");
|
||||||
|
|
||||||
exit(EX_USAGE);
|
exit(EX_USAGE);
|
||||||
}
|
}
|
||||||
@@ -120,7 +120,7 @@ main(int argc, char *argv[])
|
|||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, "l:m:n:o:s:t:z:")) != -1) {
|
while ((ch = getopt(argc, argv, "l:m:n:o:s:tz:")) != -1) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'l':
|
case 'l':
|
||||||
lib_Readfile(optarg);
|
lib_Readfile(optarg);
|
||||||
@@ -139,16 +139,7 @@ main(int argc, char *argv[])
|
|||||||
strcpy(smartlinkstartsymbol, optarg);
|
strcpy(smartlinkstartsymbol, optarg);
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
switch (optarg[0]) {
|
|
||||||
case 's':
|
|
||||||
options |= OPT_SMALL;
|
options |= OPT_SMALL;
|
||||||
/* FALLTHROUGH */
|
|
||||||
case 'g':
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
errx(EX_USAGE, "Invalid argument to option t");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'z':
|
case 'z':
|
||||||
if (optarg[0] == '?')
|
if (optarg[0] == '?')
|
||||||
|
|||||||
Reference in New Issue
Block a user