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

elf.note: added new constants for structs: prstatus, prpsinfo, siginfo_t, mapped files. #201

Merged
merged 1 commit into from
Dec 29, 2019
Merged

Conversation

anfedotoff
Copy link
Contributor

Some constants for very useful notes.

@m4b
Copy link
Owner

m4b commented Dec 28, 2019

just curious, where did you find these constants?

@anfedotoff
Copy link
Contributor Author

I found these constants in readelf sources. Here is the link: https://github.com/bminor/binutils-gdb/blob/8dc433a0fb04f8fa37530d0788053dd9bea5c37d/include/elf/common.h

@m4b
Copy link
Owner

m4b commented Dec 28, 2019

Ok we can add them, are you encountering them in the wild ?

@anfedotoff
Copy link
Contributor Author

Yes. These constants are always in core dumps, representing notes for corresponding structs. I use these constants to check note types, when i try to retrieve some interesting data from core file (signal, registers and its values, process map, etc.)

@m4b m4b merged commit 18e08df into m4b:master Dec 29, 2019
@m4b
Copy link
Owner

m4b commented Dec 29, 2019

thanks for the PR ! :)

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