--as-needed and undefined non-weak symbols