https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69271
Rich Felker <bugdal at aerifal dot cx> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugdal at aerifal dot cx --- Comment #7 from Rich Felker <bugdal at aerifal dot cx> --- Jan Hubicka, when ld resolves a reference that requires a copy relocation to a weak definition in a shared library, it searches for a strong symbol for which the weak definition is an alias, and replaces the reference with one to the strong symbol. This is necessary to ensure that &weak_alias == &strong_sym at runtime after the copy relocation changes the address of the symbol.