|
From: | Vladimir 'phcoder' Serbinenko |
Subject: | Re: [GRUB2 PATCH v3 4/4] multiboot2: Add support for relocatable images |
Date: | Fri, 11 Mar 2016 17:13:19 +0100 |
> > + if (relocatable)
> > + {
> > + if (base_addr > min_addr)
> > + grub_multiboot_payload_eip += base_addr - min_addr;
> > + else
> > + grub_multiboot_payload_eip -= min_addr - base_addr;
> > + }
> > +
> >
> Why is it relative to min_addr? Sounds like it should be just an offset
Ugh... IIRC, it has meaning but I forgot what. I will check it.
However, this means that I must put comment here.
> from base addr. What do ET_DYN files use?
I will take a look.
Daniel
[Prev in Thread] | Current Thread | [Next in Thread] |