[swift-dev] Linker script on Linux

Luke Howard lukeh at padl.com
Wed Dec 30 03:24:40 CST 2015


Per [SR-404], anything that consumed libFoundation could not dynamically cast to a Foundation protocol because the build script was missing the magic swift.ld linker script to advertise the start of the protocol conformances table. (There’s also some weird issue where dlsym() seems to return the previous table if it can’t find one, but that’s a separate issue.)

The build system is opaque enough that I’m not exactly sure how the linker is driven when building shared libraries, but it would be great if the linker script was added automagically.

— Luke
--
www.lukehoward.com
soundcloud.com/lukehoward

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20151230/fe26ae2f/attachment.html>


More information about the swift-dev mailing list