On Sat, Aug 22, 2009 at 01:38:55AM +0300, Kirill A. Shutemov wrote: > 2009/8/22 Dmitry V. Levin : > > On Sat, Aug 22, 2009 at 01:11:30AM +0300, Kirill A. Shutemov wrote: > >> Собираю тут qemu. Сталкнулся с text relocations. Упрощённый testcase: > >> > >> kas@dhcppc0:pts/2 ~/tmp $ cat 1.c > >> int main() { > >>         static __thread int i = 0; > >>         i++; > >>         return 0; > >> } > >> kas@dhcppc0:pts/2 ~/tmp $ gcc -fpie -pie 1.c > >> /usr/bin/ld: warning: creating a DT_TEXTREL in a shared object. > >> > >> Есть идеи как это исправить и вообще откуда ноги ростут? > > > > Ian Lance Taylor thinks that it's a linker bug, see thread starting at > > http://gcc.gnu.org/ml/gcc-help/2009-07/msg00348.html > > > > Looks like this bug is already fixed upstream: > > http://sourceware.org/bugzilla/show_bug.cgi?id=6443 > > It's seems is a different bug. Yep. What about this one: http://sourceware.org/bugzilla/show_bug.cgi?id=10434 -- ldv