/* */
/* */
/* */
-/* (C) 1998-2002 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
+/* (C) 1998-2003 Ullrich von Bassewitz */
+/* Römerstrasse 52 */
+/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* */
/* */
const char* MapFileName = 0; /* Name of the map file */
const char* LabelFileName = 0; /* Name of the label file */
const char* DbgFileName = 0; /* Name of the debug file */
-unsigned char WProtSegs = 0; /* Mark write protected segments */
/* */
/* */
/* */
-/* (C) 1998-2002 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
+/* (C) 1998-2003 Ullrich von Bassewitz */
+/* Römerstrasse 52 */
+/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* */
/* */
extern const char* MapFileName; /* Name of the map file */
extern const char* LabelFileName; /* Name of the label file */
extern const char* DbgFileName; /* Name of the debug file */
-extern unsigned char WProtSegs; /* Mark write protected segments */
" -C name\t\tUse linker config file\n"
" -L path\t\tSpecify a library search path\n"
" -Ln name\t\tCreate a VICE label file\n"
- " -Lp\t\t\tMark write protected segments as such (VICE)\n"
" -S addr\t\tSet the default start address\n"
" -V\t\t\tPrint the linker version\n"
" -h\t\t\tHelp (this text)\n"
"Long options:\n"
" --cfg-path path\tSpecify a config file search path\n"
" --config name\t\tUse linker config file\n"
+ " --dbgfile name\t\tGenerate debug information\n"
" --dump-config name\tDump a builtin configuration\n"
" --help\t\tHelp (this text)\n"
" --lib file\t\tLink this library\n"
case 'L':
switch (Arg [2]) {
- /* ## The first two are obsolete and will go */
+ /* ## The first one is obsolete and will go */
case 'n': LabelFileName = GetArg (&I, 3); break;
- case 'p': WProtSegs = 1; break;
default: OptLibPath (Arg, GetArg (&I, 2)); break;
}
break;
PrintDbgSymLabels (O, F);
}
- /* If we should mark write protected areas as such, do it */
- if (WProtSegs) {
- SegDesc* S = SegDescList;
- while (S) {
- /* Is this segment write protected and contains data? */
- if (S->Flags & SF_WPROT && S->Seg->Size > 0) {
- /* Write protect the memory area in VICE */
- fprintf (F, "wp %04lX %04lX\n",
- S->Seg->PC,
- S->Seg->PC + S->Seg->Size - 1);
- }
- /* Next segment */
- S = S->Next;
- }
- }
-
/* Close the file */
if (fclose (F) != 0) {
Error ("Error closing map file `%s': %s", LabelFileName, strerror (errno));