-fpic is the wrong way to go ... can we talk about this relocatable code a bit? I need to catch up. For any assembly code, if it needs to be 32-bit, it's always a good idea to have .code32 at the start thanks ron