Compatibility .so linker scripts for merged libraries

Yann Droneaud ydroneaud@opteya.com
Tue Nov 16 13:27:05 GMT 2021


Hi,


Was it considered dangerous to introduce "compatibility" .so link 
scripts for the libraries that was merged into libc.so (libpthread, 
librt, libdl, etc.) ?



For example:
$ cat librt.so
/* GNU ld script
    Use the static library */
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib/x86_64-linux-gnu/librt.a )


Because I'm having some bad times fixing issues in a build system that 
try to locate now missing .so with gcc -print-file-name= then uses the 
paths to the libraries instead of -l name them.

Regards.

-- 
Yann Droneaud
OPTEYA




More information about the Libc-alpha mailing list