mirror of
https://github.com/ksherlock/merlin-utils.git
synced 2025-01-27 17:30:56 +00:00
merlin uses the same loadname for all segments.
This commit is contained in:
parent
5ee80c8b51
commit
30d26b7828
4
link.cpp
4
link.cpp
@ -175,6 +175,7 @@ namespace {
|
|||||||
|
|
||||||
std::unordered_map<std::string, uint32_t> local_symbol_table;
|
std::unordered_map<std::string, uint32_t> local_symbol_table;
|
||||||
|
|
||||||
|
std::string loadname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -917,6 +918,7 @@ void evaluate(label_t label, opcode_t opcode, const char *cursor) {
|
|||||||
|
|
||||||
/* use 1st SAV as the path */
|
/* use 1st SAV as the path */
|
||||||
if (save_file.empty()) save_file = path;
|
if (save_file.empty()) save_file = path;
|
||||||
|
if (loadname.empty()) loadname = base;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
lkv 0 = binary linker (unsupported)
|
lkv 0 = binary linker (unsupported)
|
||||||
@ -929,7 +931,7 @@ void evaluate(label_t label, opcode_t opcode, const char *cursor) {
|
|||||||
/* merlin link uses a 10-char fixed label */
|
/* merlin link uses a 10-char fixed label */
|
||||||
//base.resize(10, ' ');
|
//base.resize(10, ' ');
|
||||||
seg.segname = base;
|
seg.segname = base;
|
||||||
seg.loadname = base;
|
seg.loadname = loadname;
|
||||||
// seg.kind = kind;
|
// seg.kind = kind;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user