> This is pretty cool, but it won't work with -fpic. There > we'll try something like > > movl %gs:0@GOT(%ebx),%eax > movl 4(%eax), %eax Nag dab it! I knew there was something. Oh well. I don't suppose it would be worth adding __attribute__((segment ("%gs"))) on extern decls.