Avoid 16-byte filenames in rlibs

Continuation of #14672 with an extra case handled (objects from native libraries).

cc #14356