[swift-dev] Issues when building swift using GNU 2.26 related to protected symbols

Dmitri Gribenko gribozavr at gmail.com
Mon Feb 22 12:25:52 CST 2016


On Mon, Feb 22, 2016 at 10:23 AM, Joe Groff <jgroff at apple.com> wrote:
>
>> On Feb 22, 2016, at 10:21 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>>
>> On Mon, Feb 22, 2016 at 9:30 AM, Joe Groff <jgroff at apple.com> wrote:
>>> Let's make sure it isn't our bug first. Is
>>> _Tvs19_emptyStringStorageVs6UInt32 defined in any of the .o or .a files that
>>> get linked into the core?
>>
>> Yes, it is there:
>>
>> $ nm stdlib/public/core/linux/x86_64/Swift.o | grep
>> _Tvs19_emptyStringStorageVs6UInt32
>> 0000000000000020 B _Tvs19_emptyStringStorageVs6UInt32
>
> Does it only fail with GNU ld on 16.04? Does it work on older Ubuntus, or with gold?

It works with GNU ld 2.24 (on Ubuntu 14.04), and with gold on current Debian.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-dev mailing list