sceNand_driver: NID 0xC478C1DE is imported twice (placeholder left after 71fb45a)

未关闭 适合新手
#407 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
77/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
c
领域
embedded-iot

调研方向

阅读 src/nand/sceNand_driver.S 和 src/nand/Makefile.am,确认重复的导入项和对象条目。检查 pspnand_driver.h 中的声明并构建 libpspnand_driver,以验证重复符号已消失,同时 sceNandReadPagesRawAll 仍然存在;检查任何构建或测试输出,查看是否有回归。

由索引模型根据 Issue 内容生成。

描述

src/nand/sceNand_driver.S declares NID 0xC478C1DE twice (at 687501d):

  • line 51, block F_sceNand_driver_0015: IMPORT_FUNC "sceNand_driver",0xC478C1DE,sceNand_driver_C478C1DE
  • line 126, block F_sceNand_driver_0040: IMPORT_FUNC "sceNand_driver",0xC478C1DE,sceNandReadPagesRawAll

The second entry was added in 71fb45a ("add missing stub"), but the older placeholder entry was not removed. So both objects build a stub for the same import, and libpspnand_driver ends up with two symbols for one function.

A likely fix is to drop the F_sceNand_driver_0015 block and its object from src/nand/Makefile.am, keeping sceNandReadPagesRawAll. Nothing in the tree uses the placeholder name: pspnand_driver.h:36 declares only sceNandReadPagesRawAll. Out-of-tree code that calls sceNand_driver_C478C1DE would need the rename.

This came up while comparing PSPSDK's import stubs against the NID table of another project (Nakagawa Recomp). The report was written with AI assistance (Claude Code), and the two lines above are quoted from the tree.

主要语言
C
星标
1.2k
派生
190
平均合并
1 天 18 小时
30 天内合并 PR
8

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pspdev/pspsdk 的其他 Issue

查看 pspdev/pspsdk 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。