[devel] DT_TEXTREL и __thread specifier
Kirill A. Shutemov
kirill at shutemov.name
Sat Aug 22 02:38:55 MSD 2009
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.
$ uname -a
Linux dhcppc0 2.6.30-std-def-alt6 #1 SMP Wed Jul 22 08:51:17 UTC 2009
i686 GNU/Linux
More information about the Devel
mailing list