ref: 084cc995e703e6f791a52a0deee5d82b796ddce5
parent: 367abd839636c2eda606073b0798172db5d517ea
author: bentley <[email protected]>
date: Fri Jan 15 07:38:19 EST 2010
make >32KiB default; replace "-t s" with "-t" (tiny?)
--- a/src/link/main.c
+++ b/src/link/main.c
@@ -42,8 +42,8 @@
{
printf("xLink v" LINK_VERSION " (part of ASMotor " ASMOTOR_VERSION
")\n\n");
- printf("usage: xlink [-l library] [-m mapfile] [-n symfile] [-o outfile] [-s symbol]\n");
- printf("\t [-t [g | s ] [-z pad_value] objectfile [...]\n");
+ printf("usage: xlink [-t] [-l library] [-m mapfile] [-n symfile] [-o outfile] [-s symbol]\n");
+ printf("\t [-z pad_value] objectfile [...]\n");
exit(EX_USAGE);
}
@@ -120,7 +120,7 @@
if (argc == 1)
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) {
case 'l':
lib_Readfile(optarg);
@@ -139,16 +139,7 @@
strcpy(smartlinkstartsymbol, optarg);
break;
case 't':
- switch (optarg[0]) {
- case 's':
- options |= OPT_SMALL;
- /* FALLTHROUGH */
- case 'g':
- break;
- default:
- errx(EX_USAGE, "Invalid argument to option t");
- break;
- }
+ options |= OPT_SMALL;
break;
case 'z':
if (optarg[0] == '?')