[llvm-commits] [Review request] Tweak section names of linkonce on PECOFF

NAKAMURA Takumi geek4civic at gmail.com
Mon Oct 11 17:03:13 PDT 2010


Good morning, Anton.

I am sorry, it was my mistake.
It seems GNU ld 2.19 specific issue.
In fact, cygwin(2.20) can link ones successfully.

I had not imagined the binutils shipped with gcc-4.4 is so older!
I will try with other distros.

AFAIK this issue is only one on GNU ld 2.19.


...Takumi


2010/10/11 NAKAMURA Takumi <geek4civic at gmail.com>:
> Good evening, Anton!
>
> I have checked llvm-gcc42-2.8/mingw.
> It seems llvm-g++/mingw has its own libstdc++ itself.
> It has sections named ".text$linkonce_{mangled}" and marked as
> LINK_ONCE_SAME_CONTENTS.
>
> libstdc++, in My distro, msysgit, has sections " .text${mangled}" and
> maked as LINK_ONCE_DISCARD.
> (FYI, also in Cygwin)
>
> It would be not a matter as far as we provide and ship libstdc++
> compiled by llvm-gcc.
>
> I don't know which would be *the right way*, but we should provide our
> libstdc++ with clang++ in future ;)
> (it should be "llvm-libcxx!")
>
> ..Takumi
>
>
> 2010/10/11 Anton Korobeynikov <anton at korobeynikov.info>:
>> Hello Takumi,
>>
>>> W/O this, linking against gcc/libstdc++ must fail.
>> It doesn't seem for me. E.g. llvm-gcc-built Qt linked w/o any problems.
>> Could you please indicate the version of binutils you're using? And
>> the error message you're seeing?
>>
>> --
>> With best regards, Anton Korobeynikov
>> Faculty of Mathematics and Mechanics, Saint Petersburg State University
>>
>



More information about the llvm-commits mailing list