https://sourceware.org/bugzilla/show_bug.cgi?id=26590
--- Comment #2 from Alan Modra <amodra at gmail dot com> --- Your testcase demonstrates --as-needed working as designed. This is not a bug in ld.bfd and the fact that gold does not diagnose an undefined symbol does not mean much. -- You are receiving this mail because: You are on the CC list for the bug.