bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/15516] GNU LD is confused when linker plugin turns COMDAT symbol


From: amodra at gmail dot com
Subject: [Bug ld/15516] GNU LD is confused when linker plugin turns COMDAT symbol into static w/o renaming.
Date: Mon, 03 Jun 2013 00:44:09 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=15516

--- Comment #14 from Alan Modra <amodra at gmail dot com> ---
I suspect you're picking up some older ld.  Note addition of -Wl,-v to show
versions in the following:

address@hidden:~/build/libreoffice$ B=/home/alan/build/libreoffice &&
O=$B/solver/unxlngx6.pro && W=$B/workdir/unxlngx6.pro &&  mkdir -p
$W/LinkTarget/Executable/ && g++ -flto -fno-fat-lto-objects -fuse-linker-plugin
-O2 -Wl,-z,origin '-Wl,-rpath,$ORIGIN/../lib:$ORIGIN' -Wl,-rpath-link,$O/lib
-Wl,-z,defs -Wl,-rpath-link,/lib:/usr/lib -Wl,-z,combreloc -L$O/lib
-Wl,--hash-style=gnu -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo
-Wl,-Bsymbolic-functions -Wl,-O1 -Wl,-S
$B/libreoffice-object-files/LocaleNode.o
$B/libreoffice-object-files/filewriter.o
$B/libreoffice-object-files/saxparser.o -Wl,--start-group -Wl,--end-group
-Wl,--no-as-needed -luno_cppu -luno_cppuhelpergcc3 -luno_sal -o
$W/LinkTarget/Executable/saxparser -Wl,-v
collect2 version 4.9.0 20130522 (experimental)
/usr/local/lib/gcc/x86_64-linux/4.9.0/../../../../x86_64-linux/bin/ld -plugin
/usr/local/libexec/gcc/x86_64-linux/4.9.0/liblto_plugin.so
-plugin-opt=/usr/local/libexec/gcc/x86_64-linux/4.9.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccbxEkZk.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 -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o
/home/alan/build/libreoffice/workdir/unxlngx6.pro/LinkTarget/Executable/saxparser
/usr/lib/x86_64-linux-gnu/crt1.o /usr/lib/x86_64-linux-gnu/crti.o
/usr/local/lib/gcc/x86_64-linux/4.9.0/crtbegin.o
-L/home/alan/build/libreoffice/solver/unxlngx6.pro/lib
-L/usr/local/lib/gcc/x86_64-linux/4.9.0
-L/usr/local/lib/gcc/x86_64-linux/4.9.0/../../../../lib64
-L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu
-L/usr/local/lib/gcc/x86_64-linux/4.9.0/../../../../x86_64-linux/lib
-L/usr/local/lib/gcc/x86_64-linux/4.9.0/../../.. -z origin -rpath
$ORIGIN/../lib:$ORIGIN -rpath-link
/home/alan/build/libreoffice/solver/unxlngx6.pro/lib -z defs -rpath-link
/lib:/usr/lib -z combreloc --hash-style=gnu --dynamic-list-cpp-new
--dynamic-list-cpp-typeinfo -Bsymbolic-functions -O1 -S
/home/alan/build/libreoffice/libreoffice-object-files/LocaleNode.o
/home/alan/build/libreoffice/libreoffice-object-files/filewriter.o
/home/alan/build/libreoffice/libreoffice-object-files/saxparser.o --start-group
--end-group --no-as-needed -luno_cppu -luno_cppuhelpergcc3 -luno_sal -v
-lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/usr/local/lib/gcc/x86_64-linux/4.9.0/crtend.o /usr/lib/x86_64-linux-gnu/crtn.o
GNU ld (GNU Binutils) 2.23.52.20130524
address@hidden:~/build/libreoffice$ 

The other possibility is that my shared libraries are masking the problem
somehow.  If you are running the version of ld you think you are, please attach
the following shared libs:
-luno_cppu
(/home/alan/build/libreoffice/solver/unxlngx6.pro/lib/libuno_cppu.so)
-luno_cppuhelpergcc3
(/home/alan/build/libreoffice/solver/unxlngx6.pro/lib/libuno_cppuhelpergcc3.so)
-luno_sal (/home/alan/build/libreoffice/solver/unxlngx6.pro/lib/libuno_sal.so)

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]