When parsing an ELF executable that requires dynamic linking, I noticed that the PT_DYNAMIC section's p_offset, and p_vaddr values are equal to those seen in one of the PT_LOAD sections (data).
Is it always the case that the PT_DYNAMIC section will be found in one of the PT_LOAD sections obviating the need to do a separate read on the file to load the dynamic section? The ELF specification I have is not clear on that.
Thanks.
PT_DYNAMIC
Re: PT_DYNAMIC
I guess people aren't that familiar with this topic
Well, my observations indicate that yes it would always be part of one of the loaded sections/segments.
Well, my observations indicate that yes it would always be part of one of the loaded sections/segments.
-
- Member
- Posts: 391
- Joined: Wed Jul 25, 2007 8:45 am
- Libera.chat IRC: aejsmith
- Location: London, UK
- Contact:
Re: PT_DYNAMIC
Yes, you're right, the contents of the dynamic section are included within the LOAD sections. You don't need to load the dynamic section manually.
Re: PT_DYNAMIC
Thanks for the confirmation.