grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] fix for loading modules from read-only memory area (Re: clea


From: Robert Millan
Subject: Re: [PATCH] fix for loading modules from read-only memory area (Re: clean patch for i386-qemu port (Re: [PATCH] i386-qemu port))
Date: Fri, 26 Jun 2009 19:03:39 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Fri, Jun 26, 2009 at 12:44:07PM -0400, Pavel Roskin wrote:
> On Fri, 2009-06-26 at 16:41 +0200, Robert Millan wrote:
> > On Thu, Jun 25, 2009 at 04:51:11PM -0400, Pavel Roskin wrote:
> > > 
> > > I'd like to avoid preprocessor conditionals in kern/ARCH/dl.c files if
> > > possible.
> > 
> > Alright, here's a new patch.  It follows your earlier suggestion to use
> > a wrapper to obtain the initialization address for symtab.  This way we
> > don't put any ifdefs in kern/ARCH/dl.c files.
> > 
> > I also avoid the #undefs in efiemu.  This required many changes in
> > loadcore.c, but they're just a sed search & replace run.
> 
> More redefinitions are needed to make all platforms compile.  At this
> point I think maybe we should try something less intrusive.  But anyway,
> 02-elf-renames.patch contains those renames.
> 
> 03-simple-symtab.patch simplifies the logic in kern/ARCH/dl.c files.

03-simple-symtab.patch looks nice, much cleaner than what I had.

But as for 02-elf-renames.patch we could try to make this more consistent.  In
efiemu I used 'W' (inspired by ElfW() macro in glibc), then in some places you
use 'K' and in other places 'T'.  Can we use the same everywhere?  I don't
care which letter, I'm not THAT much into bikeshed :-)

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]