[cfe-dev] linux/i386 and mregparm

pageexec at freemail.hu pageexec at freemail.hu
Tue Mar 1 11:39:11 PST 2011


On 1 Mar 2011 at 23:03, Anton Korobeynikov wrote:

> > with rip relative addressing (which is what my patch enables even for kernel
> > mode) you'll get negative offsets for symbols below the current rip so this
> > check is wrong in that case (i learned it the hard way when the rest of the
> > patch still didn't produce the desired asm and had to debug it down to this
> > check ;).
> Are you sure you're not mixing the code model and PIC relocation model?
> For it seems you're looking for PIC codegen.

i'm not mixing them up in that i know they're different things, but i do
(want to) mix them in the sense that i'd like clang/llvm to generate PIC
for the kernel code model as well, as this is what gcc does.

its practical use is that the size of the relocatable kernel (maybe it's
a linux specific feature that noone else really cares about ;) is much
reduced.




More information about the cfe-dev mailing list