diff options
| author | Julgodis <> | 2021-04-07 09:16:47 +0200 |
|---|---|---|
| committer | Julgodis <> | 2021-04-07 09:16:47 +0200 |
| commit | dca1d2a1c032f239c65aa1b7767132c12e89f628 (patch) | |
| tree | 103f2574cfa7c6b9f19df522447d0b58861b60ba /tools/libdol2asm/binary.py | |
| parent | ed1ee30dd20ab15ba73b987f1e59b0dfc16d09b2 (diff) | |
detect more floats/doubles, including from relocations
Diffstat (limited to 'tools/libdol2asm/binary.py')
| -rw-r--r-- | tools/libdol2asm/binary.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/libdol2asm/binary.py b/tools/libdol2asm/binary.py index c4f5177796..be40360fb1 100644 --- a/tools/libdol2asm/binary.py +++ b/tools/libdol2asm/binary.py @@ -27,9 +27,11 @@ def analyze(context: Context, cache_path = Path(f"build/generate/analyze_cache_{module_id}.dump")
if cache and cache_path.exists():
with cache_path.open('rb') as input:
- return pickle.load(input)
+ access, highLink = pickle.load(input)
+ return access, highLink
accesses = dict()
+ highLink = dict()
for section in sections:
for start, stop in section.code_segments:
size = stop - start
@@ -40,10 +42,10 @@ def analyze(context: Context, pass
accesses.update(collector.accesses)
-
+ highLink.update(collector.highLink)
if cache:
util._create_dirs_for_file(cache_path)
with cache_path.open('wb') as output:
- pickle.dump(accesses, output)
+ pickle.dump((accesses,highLink,), output)
- return accesses
+ return accesses, highLink
|
