grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] access gdtdesc on segment 0 unconditionally (Re: [PATCH] i38


From: Pavel Roskin
Subject: Re: [PATCH] access gdtdesc on segment 0 unconditionally (Re: [PATCH] i386-qemu port)
Date: Mon, 22 Jun 2009 20:53:36 -0400

On Tue, 2009-06-23 at 00:43 +0200, Robert Millan wrote:

> If I omit ADDR32 on i386-pc, I get:
> 
>     836f:       2e 66 0f 01 16 68 83    lgdtl  %cs:-0x7c98
> 
> "-0x7c98" being the signed version of 0x8368, which is also 16-bit.  What is
> really odd is that you got 0x168 which is an offset to 0x8200, when in fact
> %cs is 0, so I don't think your binary would work (did you test it?).

That's because you are disassembling the linked image after relocation
and I'm disassembling the object file.

-- 
Regards,
Pavel Roskin




reply via email to

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