Repository navigation
feat(ostool): 支持 ELF/BIN FIT 生成 #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MRNIU
wants to merge
10
commits into
drivercraft:main
Choose a base branch
from
MRNIU:feat/elf-bin-fit
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+645
−13
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d912612
feat(ostool): 增加可选 ELF 调试产物与元数据
MRNIU 08eff02
refactor(ostool): 精简 ELF 分析实现与必要测试
MRNIU c3eb392
test(ostool): 删除重复验证并精简 ELF 测试夹具
MRNIU 4157eb5
test(ostool): 精简分析测试并复用既有回归用例
MRNIU b53a19b
feat(ostool): 增加内部可配置 ELF 与 BIN FIT 生成
MRNIU 45ba85e
test(ostool): 精简 FIT 回归测试
MRNIU f2bcdaa
fix(ostool): 解决 FIT 分支与 main 的合并冲突
MRNIU f33dbd5
fix(ostool): 同步 main 并解决 FIT 合并冲突
MRNIU 8076e5d
fix(ostool): 修正 FIT 地址解析与 ELF 启动语义
MRNIU e7b566e
fix(ostool): 校验 ELF 容器地址并保留 FIT 输出权限
MRNIU File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(F-202,advisory,非阻塞)LoongArch 镜像头(
MZ)的 entry 换算内联在这里,导致FitConfig::resolve_entry()在这个分支完全不被调用,FitAddress::Auto出现两个解析点:调用方必须记得这段特判,未来接线方若直接调用resolve_entry()会得到不同结果;该分支同时绕过了resolve_entry()对 Bin 的“entry 必须落在 LMA==VMA 的 file-backed section 内”校验(fit_config.rs:134-168)。建议把 payload 相关换算收敛进FitConfig(例如resolve_entry_with_payload(&metadata, load, &kernel_data),或让resolve_entry接收 payload 并在内部处理MZ头),使地址策略只有一个所有者。