Skip to content

Commit

Permalink
Form
Browse files Browse the repository at this point in the history
  • Loading branch information
Liu committed May 28, 2024
1 parent 4944fcd commit 00e376f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/stublibs.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ const struct _PspLibraryEntry __library_exports[2] __attribute__((section(".lib.
};
```
生成的C代码的作用实际上是在`.rodata.sceResident`段中以连续的结构体数组存入每个导出的Library中导出函数的NID和导出的函数的地址。然后在`.lib.ent`段使用模块名和`.rodata.sceResient`中对应项的地址创建相应的导出条目。

|Segment Name|Export Index|Export Entry|Data|Type|
|---|---|---|---|----|
|.rodata.sceResident|1|__syslib_exports|MagicNumber|uint32|
Expand Down

0 comments on commit 00e376f

Please sign in to comment.