https://sourceware.org/bugzilla/show_bug.cgi?id=26806
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Alan Modra from comment #6) > (In reply to H.J. Lu from comment #1) > > This regression was introduced on purpose by > That's not exactly true. The as-needed library was supposed to marked > needed by an IR reference, but it is entirely accidental that references > from undefined IR symbols result in dynamic symbols. Definitely a bug. It is the same thing underneath. An undefined IR symbol leads to dynamic undefined symbol which is satisfied by a needed library, -- You are receiving this mail because: You are on the CC list for the bug.