[devel] DT_TEXTREL и __thread specifier

Dmitry V. Levin ldv at altlinux.org
Sat Aug 22 02:29:39 MSD 2009


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


-- 
ldv
----------- ????????? ????? -----------
???? ??????? ???????? ?? ? ????????? ???????...
???     : ???????????
???     : application/pgp-signature
??????  : 197 ??????
????????: ???????????
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20090822/b66650ab/attachment.bin>


More information about the Devel mailing list