Re: clang and static linking?

看板FB_current作者時間12年前 (2013/04/27 12:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串16/16 (看更多)
On 2012-11-10 22:39, Jilles Tjoelker wrote: > On Sat, Nov 10, 2012 at 01:33:40AM +0100, Dimitry Andric wrote: .... >> - Only define isnan, isnanf, __isnan and __isnanf in libc.so, not in >> libc.a and libc_p.a. > > OK, but please add a comment about this. Where? In libc or libm? >> - Define isnan in libm.a and libm_p.a, not in libm.so. I don't think >> there is a need to define __isnan in the .a files, so I left that out. > > Removing symbols from a .so causes subtle ABI breakage and is not needed > for fixing static linking. I didn't remove symbols from any .so. There was no isnan in libm.so before my commit. I only added it to the static libraries. > More concretely, dlsym of isnan on libm.so will stop working and a > different version of isnan will be chosen if the search list is libm.so, > libother.so, libc.so and libother.so contains another isnan. As I said, there was no isnan in libm.so, so this does not matter. _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1HUrJzOg (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUrJzOg (FB_current)