Skip to content

Commit

Permalink
A bit more tweaking of output/listing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhialto committed May 20, 2015
1 parent 6c992f6 commit 168340c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions assemble.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ static int assemble(
return 0;
} else {
go_section(tr, sect_stack[sect_sp]);
list_location(stack->top, DOT);
if (!enabl_lsb) {
lsb = get_next_lsb();
}
Expand Down Expand Up @@ -917,6 +918,7 @@ static int assemble(
lsb = get_next_lsb();
}
go_section(tr, &absolute_section);
list_location(stack->top, DOT);
return 1;

case P_CSECT:
Expand Down Expand Up @@ -1031,6 +1033,7 @@ static int assemble(
lsb = get_next_lsb();
}
go_section(tr, sect);
list_location(stack->top, DOT);

return 1;
} /* end PSECT code */
Expand Down
2 changes: 1 addition & 1 deletion assemble_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ void write_globals(
int isect;

if (obj == NULL) {
for (isect = 0; isect < sector; isect++) {
for (isect = 0; isect < sector; isect++) {
psect = sections[isect];

psect->sector = isect; /* Assign it a sector */
Expand Down
10 changes: 9 additions & 1 deletion dumpobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,12 @@ void got_gsd(
xferad = value;
break;
case 4:
sprintf(gsdline, "\tGLOBAL %s=%o %s flags=%o\n", name, value, cp[i + 4] & 8 ? "DEF" : "REF", flags);
sprintf(gsdline, "\tGLOBAL %s=%o %s%s%s %s flags=%o\n", name, value,
flags & 01 ? "WEAK " : "",
flags & 04 ? "LIB " : "",
flags & 010 ? "DEF" : "REF",
flags & 040 ? "REL" : "ABS",
flags);
break;
case 5:
sprintf(gsdline, "\tPSECT %s=%o flags=%o\n", name, value, flags);
Expand All @@ -361,6 +366,9 @@ void got_gsd(
case 7:
sprintf(gsdline, "\tVSECT %s=%o flags=%o\n", name, value, flags);
break;
case 010:
sprintf(gsdline, "\tCompletion Routine Name %s=%o flags=%o\n", name, value, flags);
break;
default:
sprintf(gsdline, "\t***Unknown GSD entry type %d flags=%o\n", cp[i + 5] & 0xff, flags);
break;
Expand Down

0 comments on commit 168340c

Please sign in to comment.