Flag labels in the map file exports list
git-svn-id: svn://svn.cc65.org/cc65/trunk@877 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -350,7 +350,7 @@ Export* CreateConstExport (const char* Name, long Value)
|
|||||||
/* Create an export for a literal date */
|
/* Create an export for a literal date */
|
||||||
{
|
{
|
||||||
/* Create a new export */
|
/* Create a new export */
|
||||||
Export* E = NewExport (EXP_ABS | EXP_CONST, Name, 0);
|
Export* E = NewExport (EXP_ABS | EXP_CONST | EXP_EQUATE, Name, 0);
|
||||||
|
|
||||||
/* Assign the value */
|
/* Assign the value */
|
||||||
E->Expr = LiteralExpr (Value, 0);
|
E->Expr = LiteralExpr (Value, 0);
|
||||||
@@ -368,7 +368,7 @@ Export* CreateMemExport (const char* Name, Memory* Mem, unsigned long Offs)
|
|||||||
/* Create an relative export for a memory area offset */
|
/* Create an relative export for a memory area offset */
|
||||||
{
|
{
|
||||||
/* Create a new export */
|
/* Create a new export */
|
||||||
Export* E = NewExport (EXP_ABS | EXP_EXPR, Name, 0);
|
Export* E = NewExport (EXP_ABS | EXP_EXPR | EXP_LABEL, Name, 0);
|
||||||
|
|
||||||
/* Assign the value */
|
/* Assign the value */
|
||||||
E->Expr = MemExpr (Mem, Offs, 0);
|
E->Expr = MemExpr (Mem, Offs, 0);
|
||||||
@@ -386,7 +386,7 @@ Export* CreateSegExport (const char* Name, Section* Sec, unsigned long Offs)
|
|||||||
/* Create a relative export to a segment (section) */
|
/* Create a relative export to a segment (section) */
|
||||||
{
|
{
|
||||||
/* Create a new export */
|
/* Create a new export */
|
||||||
Export* E = NewExport (EXP_ABS | EXP_EXPR, Name, 0);
|
Export* E = NewExport (EXP_ABS | EXP_EXPR | EXP_LABEL, Name, 0);
|
||||||
|
|
||||||
/* Assign the value */
|
/* Assign the value */
|
||||||
E->Expr = SegExpr (Sec, Offs, 0);
|
E->Expr = SegExpr (Sec, Offs, 0);
|
||||||
@@ -601,10 +601,11 @@ void PrintExportMap (FILE* F)
|
|||||||
/* Print unreferenced symbols only if explictly requested */
|
/* Print unreferenced symbols only if explictly requested */
|
||||||
if (VerboseMap || E->ImpCount > 0 || IS_EXP_CONDES (E->Type)) {
|
if (VerboseMap || E->ImpCount > 0 || IS_EXP_CONDES (E->Type)) {
|
||||||
fprintf (F,
|
fprintf (F,
|
||||||
"%-25s %06lX %c%c%c ",
|
"%-25s %06lX %c%c%c%c ",
|
||||||
E->Name,
|
E->Name,
|
||||||
GetExportVal (E),
|
GetExportVal (E),
|
||||||
E->ImpCount? 'R' : ' ',
|
E->ImpCount? 'R' : ' ',
|
||||||
|
IS_EXP_LABEL (E->Type)? 'L' : 'E',
|
||||||
IS_EXP_ZP (E->Type)? 'Z' : ' ',
|
IS_EXP_ZP (E->Type)? 'Z' : ' ',
|
||||||
IS_EXP_CONDES (E->Type)? 'I' : ' ');
|
IS_EXP_CONDES (E->Type)? 'I' : ' ');
|
||||||
if (++Count == 2) {
|
if (++Count == 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user