Someone's done a lot of this work upstream as Android x86 support in druntime (unfortunately, he didn't listen to me when I told him that his patches wouldn't work for GDC - both ``linux`` and ``Android`` are predefined versions on Android).  It may be worth looking at that so that you don't duplicate efforts.