Skip to content
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

Support reading (ET_SCE_DYNEXEC,ET_SCE_DYNAMIC) DebugId and Object Kind #782

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

Swatinem
Copy link
Member

@Swatinem Swatinem commented Apr 14, 2023

#skip-changelog

@Swatinem Swatinem requested a review from a team April 14, 2023 10:59
@codecov
Copy link

codecov bot commented Apr 14, 2023

Codecov Report

Merging #782 (fafd2b2) into master (28872d0) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

❗ Current head fafd2b2 differs from pull request most recent head 7867620. Consider uploading reports for the commit 7867620 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #782      +/-   ##
==========================================
- Coverage   74.99%   74.96%   -0.04%     
==========================================
  Files          71       71              
  Lines       15561    15568       +7     
==========================================
  Hits        11670    11670              
- Misses       3891     3898       +7     

@Swatinem Swatinem enabled auto-merge (squash) April 14, 2023 11:20
const PT_SCE_DYNLIBDATA: u32 = 0x61000000;

for ph in &self.elf.program_headers {
if ph.p_type == PT_SCE_DYNLIBDATA && ph.p_filesz >= 20 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the significance of 20 here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what information I can find on the public web, this section starts with a 24 byte signature, but normal build ids are only 20 bytes. In the files I am looking at, we actually have 16 usable bytes, with 4 null-bytes afterwards.

@Swatinem Swatinem merged commit bb71c54 into master Apr 14, 2023
@Swatinem Swatinem deleted the ps-kind-debugid branch April 14, 2023 13:41
@bruno-garcia bruno-garcia changed the title Support reading Playstation DebugId and Object Kind Support reading (ET_SCE_DYNEXEC,ET_SCE_DYNAMIC) DebugId and Object Kind Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants