https://sourceware.org/bugzilla/show_bug.cgi?id=26551
--- Comment #5 from Fangrui Song <i at maskray dot me> --- ld.bfd a.o --as-needed b.so Let a.o define a function which will be called by b.so via dlopen. In this case, ld should export the function. This justification may look weak but I think it is moving toward the right direction if we consider that GNU ld from binutils 2.22 defaulted to --no-copy-dt-needed-entries (doing less shared object traversal for more proper dependency tracking and avoiding unneeded work). -- You are receiving this mail because: You are on the CC list for the bug.