--- - branch: MAIN date: Sat Nov 4 16:03:12 UTC 2017 files: - new: '1.5' old: '1.4' path: src/external/gpl3/gcc/lib/liblto_plugin/Makefile pathrev: src/external/gpl3/gcc/lib/liblto_plugin/Makefile@1.5 type: modified id: 20171104T160312Z.26b403f6f8ffe2f7142cb0758e3a991c8ef8ef70 log: | Link liblto_plugin with -liberty (gcc) GCC passes liblto_plugin.so in the linker invocation (part of "gcc -v file.c"): ld -plugin /usr/libexec/liblto_plugin.so -plugin-opt=/usr/libexec/lto-wrapper \ -plugin-opt=-fresolution=/var/tmp//ccxda9Ar.res \ -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc \ -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s \ -plugin-opt=-pass-through=-lgcc --eh-frame-hdr -dc -dp -e _start \ -dynamic-linker /usr/libexec/ld.elf_so /usr/lib/crt0.o /usr/lib/crti.o \ /usr/lib/crtbegin.o /var/tmp//cc7A7mOK.o --as-needed -lgcc_s --no-as-needed \ -lgcc -lc --as-needed -lgcc_s --no-as-needed -lgcc /usr/lib/crtend.o \ /usr/lib/crtn.o When attempting to use GNU GOLD, liblto_plugin.so cannot be used because it \ has missing symbol xstrerror: ld: error: /usr/libexec/liblto_plugin.so: could not load plugin library: \ /usr/libexec/liblto_plugin.so: Undefined PLT symbol "xstrerror" (symnum = 38) From Makefiles and sources inspection, liblto_plugin.so shall be linked with \ libiberty (-liberty), a utility GNU library for internal usage with helping \ functions. PR 52674 by myself module: src subject: 'CVS commit: src/external/gpl3/gcc/lib/liblto_plugin' unixtime: '1509811392' user: kamil