lea with fs override



I'd like to know, from userland, what base linear address my OS
(Windows XP) has set the FS segment (or GS, for that matter) to point
to.

I thought I could be clever, and do something like this (intel
syntax):

lea eax, fs:[0]

To figure this out. Unfortunately, LEA ignores segment overrides, and
I get back 0. Not helpful.

Is there another way to figure this out?

Thanks,
JC

.



Relevant Pages

  • Re: lea with fs override
    ... has set the FS segment ... I thought I could be clever, and do something like this (intel ... lea eax, fs: ...
    (comp.lang.asm.x86)
  • Re: Does Linux hog fs and gs registers?
    ... > disappointing that Windows reserves fs and gs for itself. ... There really isn't much reason to use the other segment registers. ... segmentation to allow Windows code to use FS as the TEB pointer without ...
    (comp.lang.asm.x86)
  • Re: newbie questions
    ... Windows XP (at least in the 32 bit ... The good old int21 interface provides anything you need and is ... but about which "16 bit registers" are you speaking? ... And any applications uses segment registers. ...
    (alt.lang.asm)
  • Re: Induced signal?
    ... I think it's just a matter of degree. ... include loads for bypass caps and chokes. ... If you're using the standard EZNEC, you're going to have to knock ... months ago that I've hit the segment limit ... ...
    (rec.radio.amateur.antenna)
  • Re: Role of the code segment register during "far" CALLs
    ... I read some of your article from which i understood that Windows ... does'nt use call gates to implement intersegment calls. ... privilege level as the code segment of my "main" program. ...
    (microsoft.public.win32.programmer.kernel)