Re: [PATCH] do not require that device is a partition

2007-10-14 Thread Robert Millan
New patch after IRC discussion with Marco. code + ChangeLog should be self-explanatory. -- Robert Millan I know my rights; I want my phone call! What use is a phone call, if you are unable to speak? (as seen on /.) 2007-10-14 Robert Millan <[EMAIL PROTECTED]> * normal/misc.c (grub_normal

[non-finalised patch] reiserfs handling

2007-10-14 Thread Vincent Pelletier
Hi. Attached is my work on reiserfs handling. As I don't plan to work on it anytime soon, and as I was advised on IRC, I port it here, in case someone want to use it as a base. It does not follow the coding style, some part looks quite ugly (big hex constants as bitmasks, grub_reiserfs_get_ite

[PATCH] access phdr header entries like an array

2007-10-14 Thread Robert Millan
This patch makes it easier and more intuitive to access entries in the phdr header as if it were a C array. It has otherwise no effect on the current code (other than saving some space for an awkward reason), but is needed to implement the ability to load segments at an arbitrary address, disting

Re: [PATCH] ELF program header

2007-10-14 Thread Robert Millan
On Sat, Oct 13, 2007 at 12:03:37AM +0200, Stefan Reinauer wrote: > > /* FIXME: Should we support program headers at strange locations? */ > > if (ehdr->e_phoff + ehdr->e_phnum * ehdr->e_phentsize > MULTIBOOT_SEARCH) > > return grub_error (GRUB_ERR_BAD_OS, "program header at a too high > >

Re: [PATCH] ELF program header

2007-10-14 Thread Robert Millan
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 ph