[cfe-dev] linux/i386 and mregparm

Anton Korobeynikov anton at korobeynikov.info
Tue Mar 1 12:03:09 PST 2011


> 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.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the cfe-dev mailing list