On Fri, Oct 12, 2007 at 03:24:06PM -0500, Andrei E. Warkentin wrote:
> I don't think the ELF TIS says anything about location of PHDRs.  
> That's the whole point of EHDR - so that the location, size of each  
> entry, and count can be variable. The only invalid case would be for  
> phoff or phoff + phentcount * phentsize to exceed end of file offset.

But what do we know about the segments?  Could we be accidentaly overwriting
the first segment with our phdr?  It didn't happen in any of my tests, but
I'm not sure if it's still possible.

Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)

Grub-devel mailing list

Reply via email to