Closed
Description
An example showing off this behavior in a gist: https://gist.github.com/anonymous/633c83a89bb6bf479573
This is similar to #15460 which was fixed with the whole-archive
option to the linker, and it will likely require the same fix when linking rlibs to a dynamic library to solve this problem as well.