[vbox-dev] Virtualbox compiled as PIE/PIC

Dariem Pérez Herrera dariemp at uci.cu
Sat Feb 20 17:52:52 PST 2010

This is a patch I made trying to solve an issue presented in Gentoo 
Hardened project. VirtualBox doesn't compile with gcc if PIC/PIE related 
options are activated. The problem is related to inline asm code trying 
to use ebx register for passing arguments, but PIC/PIE systems reserve 
this register for specific functions, so special treatment is required 
when PIC/PIE is defined (gcc refuses to compile such a code if you don't 
do it). This may need extensive testing, but it seems to work fine. 
Please, let me know any problem you encounter. The patch is under MIT 

best regards,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: virtualbox-ose-3.1.0-nova-hardened-pie-pic-support.patch
Type: text/x-patch
Size: 5145 bytes
Desc: not available
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20100220/0fe8d897/attachment-0001.bin 

More information about the vbox-dev mailing list