bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24836] --as-needed leaves unused direct dependencies


From: crusader.mike at gmail dot com
Subject: [Bug ld/24836] --as-needed leaves unused direct dependencies
Date: Tue, 23 Jul 2019 17:56:36 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=24836

--- Comment #2 from crusader.mike at gmail dot com ---
Here is the output with "-Wl,-v":

collect2 version 8.2.1 20180905 (Red Hat 8.2.1-3)
/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld -plugin
/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/liblto_plugin.so
-plugin-opt=/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
-plugin-opt=-fresolution=/tmp/cc4U4v6Q.res -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lpthread
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lgcc --build-id --no-add-needed --eh-frame-hdr
--hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o
procmon.e -s /lib/../lib64/crt1.o /lib/../lib64/crti.o
/opt/rh/devtoolset-8/root/usr/lib/gcc/x86_64-redhat-linux/8/crtbegin.o
-L/opt/rh/devtoolset-8/root/usr/lib/gcc/x86_64-redhat-linux/8
-L/opt/rh/devtoolset-8/root/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/opt/rh/devtoolset-8/root/usr/lib/gcc/x86_64-redhat-linux/8/../../..
--as-needed --gc-sections -v CMakeFiles/procmon.e.dir/procmon.cpp.o
CMakeFiles/procmon.e.dir/proc.cpp.o -rpath /usr/local/lib64 
<bunch of my static libs (.a)>
/usr/local/lib64/libxalan-c.so /usr/local/lib64/libxerces-c.so
/home/user/vcpkg/installed/x64-linux/lib/libcurl.a
/home/user/vcpkg/installed/x64-linux/lib/libz.a -lcrypt
/home/user/vcpkg/installed/x64-linux/lib/libaws-cpp-sdk-s3.a
/home/user/vcpkg/installed/x64-linux/lib/libaws-cpp-sdk-core.a
/home/user/vcpkg/installed/x64-linux/lib/libcurl.a
/home/user/vcpkg/installed/x64-linux/lib/libssl.a
/home/user/vcpkg/installed/x64-linux/lib/libcrypto.a
/home/user/vcpkg/installed/x64-linux/lib/libaws-c-event-stream.a
/home/user/vcpkg/installed/x64-linux/lib/libaws-c-common.a -lrt
/home/user/vcpkg/installed/x64-linux/lib/libaws-checksums.a -lpthread
/home/user/vcpkg/installed/x64-linux/lib/libazurestorage.a
/home/user/vcpkg/installed/x64-linux/lib/libuuid.a
/home/user/vcpkg/installed/x64-linux/lib/libxml2.a
/home/user/vcpkg/installed/x64-linux/lib/liblzma.a
/home/user/vcpkg/installed/x64-linux/lib/libz.a
/home/user/vcpkg/installed/x64-linux/lib/libcpprest.a -lpthread
/home/user/vcpkg/installed/x64-linux/lib/libz.a
/home/user/vcpkg/installed/x64-linux/lib/libssl.a
/home/user/vcpkg/installed/x64-linux/lib/libcrypto.a -ldl
/home/user/vcpkg/installed/x64-linux/lib/libboost_log.a
/home/user/vcpkg/installed/x64-linux/lib/libboost_log_setup.a
/home/user/vcpkg/installed/x64-linux/lib/libboost_filesystem.a
/home/user/vcpkg/installed/x64-linux/lib/libboost_thread.a
/home/user/vcpkg/installed/x64-linux/lib/libboost_date_time.a
/home/user/vcpkg/installed/x64-linux/lib/libboost_regex.a
/home/user/vcpkg/installed/x64-linux/lib/libboost_chrono.a
/home/user/vcpkg/installed/x64-linux/lib/libboost_atomic.a -lstdc++ -lm -lgcc_s
-lgcc -lpthread -lc -lgcc_s -lgcc
/opt/rh/devtoolset-8/root/usr/lib/gcc/x86_64-redhat-linux/8/crtend.o
/lib/../lib64/crtn.o
GNU ld version 2.30-47.el7

-- 
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]