Skip to content

Improve ELF note support - #50

Merged
fornwall merged 3 commits into
fornwall:mainfrom
dwalluck:improve-elf-note-support
Jul 18, 2026
Merged

Improve ELF note support#50
fornwall merged 3 commits into
fornwall:mainfrom
dwalluck:improve-elf-note-support

Conversation

@dwalluck

@dwalluck dwalluck commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

dwalluck added 3 commits April 9, 2026 11:41
Match the naming convention used in elf.h (e.g., ELF_NOTE_SOLARIS,
ELF_NOTE_GNU, and ELF_NOTE_FDO). This also makes the constants
unambiguous when used as static imports.
The note name is stored with trailing null bytes stripped, so that,
e.g., "Go\0" and "Go\0\0" both become "Go". Expose the raw name size so
that callers can distinguish between them (Go notes have a name size of
4).
Add notes() for parsing note entries in PT_NOTE segments which
delegates to ElfNoteSection.readNotes(). This enables note access
when section headers are stripped.
@dwalluck

dwalluck commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

@fornwall This should be the last pull request. I split it as three commits since I modified the ELF note constants again and didn't want to wait for that to be merged. Thanks!

@dwalluck

dwalluck commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

@fornwall Maybe I should add equals() and hashCode() to the other value objects for consistency, although the deep equals I added is questionable in some cases. One issue is they're already being used in Collections in the codebase and don't have proper methods.

@dwalluck

Copy link
Copy Markdown
Contributor Author

@fornwall sorry to ping you, but I finished all my pull requests and you seemed to disappear right as I finished. Thanks!

@fornwall
fornwall merged commit c16d6c7 into fornwall:main Jul 18, 2026
4 checks passed
@fornwall

Copy link
Copy Markdown
Owner

@dwalluck Sorry for that - merged this one now. If you rebase #51 on main to resolve merge conflicts I'll then

  1. Add a PR applying and enforcing code formatting.
  2. Cut a release and publish to maven.

@dwalluck
dwalluck deleted the improve-elf-note-support branch July 19, 2026 14:52
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