[Wine] Suffix or Operands invalid during AMD64 compile

Peter Beutner p.beutner at gmx.net
Mon Mar 12 14:36:18 CDT 2007


Declan Moriarty schrieb:
> 
> I would not claim to be up on present compilers, or C, but to me it
> looks like the compile options.
> 
> /start useless knowledge
> -fPIC gives you position independent code, i.e. the kernel can put it
> anywhere in ram and it will work; the benefit of that is that a hacker
> can't rely on a program appearing anywhere in particular. PUSH, and POP
> are assembler instructions, and assembler is _not_ position independent,

That's not true. As long as you are careful about a few things(not messing 
up %ebx, etc) assembler code can be very well position independent.



More information about the wine-users mailing list