* Pavel Valena:
I'm not sure if this is a false positive. I checked fcntl.so, and it
references __cxa_finalize, as a weak symbol, so it needs to be linked
against libc.so.6, for ABI stability.
Can you figure out the linker command line? It could be a binutils bug
in the implementation of --as-needed.
Thanks,
Florian