[devel] DT_TEXTREL и __thread specifier

Dmitry V. Levin ldv at altlinux.org
Sat Aug 22 03:45:25 MSD 2009


On Sat, Aug 22, 2009 at 01:38:55AM +0300, Kirill A. Shutemov wrote:
> 2009/8/22 Dmitry V. Levin <ldv �� altlinux.org>:
> > 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
----------- ????????? ????? -----------
???? ??????? ???????? ?? ? ????????? ???????...
???     : ???????????
???     : application/pgp-signature
??????  : 197 ??????
????????: ???????????
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20090822/28177914/attachment.bin>


More information about the Devel mailing list