mapfile-parser 2.7.3__tar.gz → 2.7.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/CHANGELOG.md +17 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/Cargo.lock +11 -11
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/Cargo.toml +3 -3
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/PKG-INFO +3 -3
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/README.md +2 -2
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/pyproject.toml +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/__init__.py +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/frontends/bss_check.py +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/frontends/jsonify.py +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/mapfile_parser.pyi +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/mapfile_rs.py +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/progress_stats_rs.py +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/rs/file.rs +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/rs/found_symbol_info.rs +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/rs/lib.rs +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/rs/mapfile.rs +7 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/rs/maps_comparison_info.rs +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/rs/progress_stats.rs +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/rs/segment.rs +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/rs/symbol.rs +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/rs/symbol_comparison_info.rs +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/rs/utils.rs +1 -1
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/.gitattributes +0 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/.gitignore +0 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/LICENSE +0 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/__main__.py +0 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/frontends/__init__.py +0 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/frontends/first_diff.py +0 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/frontends/pj64_syms.py +0 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/frontends/progress.py +0 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/frontends/sym_info.py +0 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/frontends/symbol_sizes_csv.py +0 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/frontends/upload_frogress.py +0 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/mapfile.py +0 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/progress_stats.py +0 -0
- {mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/utils.py +0 -0
|
@@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.7.5] - 2025-05-08
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Fix Rust release.
|
|
15
|
+
|
|
16
|
+
## [2.7.4] - 2025-03-19
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Fix size calculation for the last symbol of a section not properly accounting
|
|
21
|
+
if the first symbol of said section is a `static` symbol (meaning it is
|
|
22
|
+
missing from the mapfile).
|
|
23
|
+
- This fix only applies to GNU mapfiles.
|
|
24
|
+
|
|
10
25
|
## [2.7.3] - 2025-02-09
|
|
11
26
|
|
|
12
27
|
### Fixed
|
|
@@ -453,6 +468,8 @@ Full changes: <https://github.com/Decompollaborate/mapfile_parser/compare/702a73
|
|
|
453
468
|
- Initial release
|
|
454
469
|
|
|
455
470
|
[unreleased]: https://github.com/Decompollaborate/mapfile_parser/compare/master...develop
|
|
471
|
+
[2.7.5]: https://github.com/Decompollaborate/mapfile_parser/compare/2.7.4...2.7.5
|
|
472
|
+
[2.7.4]: https://github.com/Decompollaborate/mapfile_parser/compare/2.7.3...2.7.4
|
|
456
473
|
[2.7.3]: https://github.com/Decompollaborate/mapfile_parser/compare/2.7.2...2.7.3
|
|
457
474
|
[2.7.2]: https://github.com/Decompollaborate/mapfile_parser/compare/2.7.1...2.7.2
|
|
458
475
|
[2.7.1]: https://github.com/Decompollaborate/mapfile_parser/compare/2.7.0...2.7.1
|
|
@@ -49,7 +49,7 @@ checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c"
|
|
|
49
49
|
|
|
50
50
|
[[package]]
|
|
51
51
|
name = "mapfile_parser"
|
|
52
|
-
version = "2.7.
|
|
52
|
+
version = "2.7.5"
|
|
53
53
|
dependencies = [
|
|
54
54
|
"lazy_static",
|
|
55
55
|
"pyo3",
|
|
@@ -95,9 +95,9 @@ dependencies = [
|
|
|
95
95
|
|
|
96
96
|
[[package]]
|
|
97
97
|
name = "pyo3"
|
|
98
|
-
version = "0.23.
|
|
98
|
+
version = "0.23.5"
|
|
99
99
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
100
|
-
checksum = "
|
|
100
|
+
checksum = "7778bffd85cf38175ac1f545509665d0b9b92a198ca7941f131f85f7a4f9a872"
|
|
101
101
|
dependencies = [
|
|
102
102
|
"cfg-if",
|
|
103
103
|
"indoc",
|
|
@@ -113,9 +113,9 @@ dependencies = [
|
|
|
113
113
|
|
|
114
114
|
[[package]]
|
|
115
115
|
name = "pyo3-build-config"
|
|
116
|
-
version = "0.23.
|
|
116
|
+
version = "0.23.5"
|
|
117
117
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
118
|
-
checksum = "
|
|
118
|
+
checksum = "94f6cbe86ef3bf18998d9df6e0f3fc1050a8c5efa409bf712e661a4366e010fb"
|
|
119
119
|
dependencies = [
|
|
120
120
|
"once_cell",
|
|
121
121
|
"target-lexicon",
|
|
@@ -123,9 +123,9 @@ dependencies = [
|
|
|
123
123
|
|
|
124
124
|
[[package]]
|
|
125
125
|
name = "pyo3-ffi"
|
|
126
|
-
version = "0.23.
|
|
126
|
+
version = "0.23.5"
|
|
127
127
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
128
|
-
checksum = "
|
|
128
|
+
checksum = "e9f1b4c431c0bb1c8fb0a338709859eed0d030ff6daa34368d3b152a63dfdd8d"
|
|
129
129
|
dependencies = [
|
|
130
130
|
"libc",
|
|
131
131
|
"pyo3-build-config",
|
|
@@ -133,9 +133,9 @@ dependencies = [
|
|
|
133
133
|
|
|
134
134
|
[[package]]
|
|
135
135
|
name = "pyo3-macros"
|
|
136
|
-
version = "0.23.
|
|
136
|
+
version = "0.23.5"
|
|
137
137
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
138
|
-
checksum = "
|
|
138
|
+
checksum = "fbc2201328f63c4710f68abdf653c89d8dbc2858b88c5d88b0ff38a75288a9da"
|
|
139
139
|
dependencies = [
|
|
140
140
|
"proc-macro2",
|
|
141
141
|
"pyo3-macros-backend",
|
|
@@ -145,9 +145,9 @@ dependencies = [
|
|
|
145
145
|
|
|
146
146
|
[[package]]
|
|
147
147
|
name = "pyo3-macros-backend"
|
|
148
|
-
version = "0.23.
|
|
148
|
+
version = "0.23.5"
|
|
149
149
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
150
|
-
checksum = "
|
|
150
|
+
checksum = "fca6726ad0f3da9c9de093d6f116a93c1a38e417ed73bf138472cf4064f72028"
|
|
151
151
|
dependencies = [
|
|
152
152
|
"heck",
|
|
153
153
|
"proc-macro2",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# SPDX-FileCopyrightText: © 2023-
|
|
1
|
+
# SPDX-FileCopyrightText: © 2023-2025 Decompollaborate
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
3
|
|
|
4
4
|
[package]
|
|
5
5
|
name = "mapfile_parser"
|
|
6
|
-
version = "2.7.
|
|
6
|
+
version = "2.7.5"
|
|
7
7
|
edition = "2021"
|
|
8
8
|
rust-version = "1.65.0"
|
|
9
9
|
authors = ["Anghelo Carvajal <angheloalf95@gmail.com>"]
|
|
@@ -23,7 +23,7 @@ crate-type = ["cdylib", "staticlib", "rlib"]
|
|
|
23
23
|
|
|
24
24
|
[dependencies]
|
|
25
25
|
regex = "1.10.2"
|
|
26
|
-
pyo3 = { version = "0.23.
|
|
26
|
+
pyo3 = { version = "0.23.5", optional = true, features = ["extension-module"]}
|
|
27
27
|
lazy_static = "1.4.0"
|
|
28
28
|
serde = { version = "1.0", features = ["derive"], optional = true }
|
|
29
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mapfile_parser
|
|
3
|
-
Version: 2.7.
|
|
3
|
+
Version: 2.7.5
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -53,7 +53,7 @@ If you use a `requirements.txt` file in your repository, then you can add
|
|
|
53
53
|
this library with the following line:
|
|
54
54
|
|
|
55
55
|
```txt
|
|
56
|
-
mapfile_parser>=2.7.
|
|
56
|
+
mapfile_parser>=2.7.5,<3.0.0
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
#### Development version
|
|
@@ -92,7 +92,7 @@ cargo add mapfile_parser
|
|
|
92
92
|
Or add the following line manually to your `Cargo.toml` file:
|
|
93
93
|
|
|
94
94
|
```toml
|
|
95
|
-
mapfile_parser = "2.7.
|
|
95
|
+
mapfile_parser = "2.7.5"
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
## Versioning and changelog
|
|
@@ -35,7 +35,7 @@ If you use a `requirements.txt` file in your repository, then you can add
|
|
|
35
35
|
this library with the following line:
|
|
36
36
|
|
|
37
37
|
```txt
|
|
38
|
-
mapfile_parser>=2.7.
|
|
38
|
+
mapfile_parser>=2.7.5,<3.0.0
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
#### Development version
|
|
@@ -74,7 +74,7 @@ cargo add mapfile_parser
|
|
|
74
74
|
Or add the following line manually to your `Cargo.toml` file:
|
|
75
75
|
|
|
76
76
|
```toml
|
|
77
|
-
mapfile_parser = "2.7.
|
|
77
|
+
mapfile_parser = "2.7.5"
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
## Versioning and changelog
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SPDX-FileCopyrightText: © 2023-
|
|
1
|
+
/* SPDX-FileCopyrightText: © 2023-2025 Decompollaborate */
|
|
2
2
|
/* SPDX-License-Identifier: MIT */
|
|
3
3
|
|
|
4
4
|
use std::collections::HashMap;
|
|
@@ -285,6 +285,12 @@ impl MapFile {
|
|
|
285
285
|
// of the file.
|
|
286
286
|
if let Some(first_sym) = file.symbols.first() {
|
|
287
287
|
sym_vrom += first_sym.vram - file.vram;
|
|
288
|
+
|
|
289
|
+
// Aditionally, if the first symbol is missing then calculation of the size
|
|
290
|
+
// for the last symbol would be wrong, since we subtract the accumulated
|
|
291
|
+
// size of each symbol from the section's total size to calculate it.
|
|
292
|
+
// We need to adjust the total size by this difference too.
|
|
293
|
+
acummulated_size += first_sym.vram - file.vram;
|
|
288
294
|
}
|
|
289
295
|
|
|
290
296
|
// Calculate size of each symbol
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/frontends/symbol_sizes_csv.py
RENAMED
|
File without changes
|
{mapfile_parser-2.7.3 → mapfile_parser-2.7.5}/src/mapfile_parser/frontends/upload_frogress.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|