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

Add applies_to field to Relocation #162

Closed
wants to merge 1 commit into from

Conversation

yd0b0N
Copy link
Contributor

@yd0b0N yd0b0N commented May 2, 2018

This patch adds an applies_to field to the ELF.Relocation object that tracks with ELF.Section the relocation applies to in an ELF object file. It's value is provided by the ELF.Parser when the latter analyzes an ELF object file. When dealing with object files, the field is necessary to properly interpret the meaning of the relocation's address field because in this context, instead of representing a virtual address, the address is relative to the beginning of the designated ELF section.

The field contains a pointer to the Section object
the OBJECT Relocation applies to.
@romainthomas
Copy link
Member

Merged with 0bbeaa8.

I did small modifications, especially I replaced the name applies_to with section because the relocation could also apply to a segment, a symbol etc

Thanks for the contribution.

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.

None yet

2 participants