[Bug binutils/18288] linker -s output suboptimal
https://sourceware.org/bugzilla/show_bug.cgi?id=18288 --- Comment #9 from H.J. Lu --- Works for me: [hjl@gnu-tools-1 opendkim]$ gcc -LLIBS/ -std=gnu99 -pthread -pipe -O3 -fno-fat-lto-objects -flto -pthread -Wl,-O1 -Wl,-z -Wl,relro -Wl,-s -o .libs/opendkim opendkim-opendkim.o opendkim-opendkim-ar.o opendkim-opendkim-arf.o opendkim-opendkim-crypto.o opendkim-opendkim-db.o opendkim-opendkim-dns.o opendkim-opendkim-lua.o opendkim-config.o opendkim-flowrate.o opendkim-reputation.o opendkim-stats.o opendkim-test.o opendkim-util.o ../libopendkim/.libs/libopendkim.so ./LIBS/libtre.so -lmilter ./LIBS/libgnutls.so -lz ./LIBS/libtspi.so -lpthread ./LIBS/libtasn1.so -lnettle -lhogweed ./LIBS/libgmp.so -ldb ./LIBS/libopendbx.so ./LIBS/libmemcachedutil.so ./LIBS/libmemcached.so ./LIBS/libsasl2.so ./LIBS/libstdc++.so -llua -lm ./LIBS/libunbound.so -lssl -lcrypto ../libvbr/.libs/libvbr.so ../librbl/.libs/librbl.so -lresolv -ldl ./LIBS/libstrl.so -pthread -Wl,-rpath -Wl,/usr/lib64 [hjl@gnu-tools-1 opendkim]$ ls -l .libs/opendkim -rwxrwxr-x 1 hjl hjl 471816 Apr 23 04:57 .libs/opendkim [hjl@gnu-tools-1 opendkim]$ strip .libs/opendkim [hjl@gnu-tools-1 opendkim]$ ls -l .libs/opendkim -rwxrwxr-x 1 hjl hjl 471816 Apr 23 04:57 .libs/opendkim [hjl@gnu-tools-1 opendkim]$ gcc -LLIBS/ -std=gnu99 -pthread -pipe -O3 -fno-fat-lto-objects -flto -pthread -Wl,-O1 -Wl,-z -Wl,relro -o .libs/opendkim opendkim-opendkim.o opendkim-opendkim-ar.o opendkim-opendkim-arf.o opendkim-opendkim-crypto.o opendkim-opendkim-db.o opendkim-opendkim-dns.o opendkim-opendkim-lua.o opendkim-config.o opendkim-flowrate.o opendkim-reputation.o opendkim-stats.o opendkim-test.o opendkim-util.o ../libopendkim/.libs/libopendkim.so ./LIBS/libtre.so -lmilter ./LIBS/libgnutls.so -lz ./LIBS/libtspi.so -lpthread ./LIBS/libtasn1.so -lnettle -lhogweed ./LIBS/libgmp.so -ldb ./LIBS/libopendbx.so ./LIBS/libmemcachedutil.so ./LIBS/libmemcached.so ./LIBS/libsasl2.so ./LIBS/libstdc++.so -llua -lm ./LIBS/libunbound.so -lssl -lcrypto ../libvbr/.libs/libvbr.so ../librbl/.libs/librbl.so -lresolv -ldl ./LIBS/libstrl.so -pthread -Wl,-rpath -Wl,/usr/lib64 [hjl@gnu-tools-1 opendkim]$ ls -l .libs/opendkim -rwxrwxr-x 1 hjl hjl 531728 Apr 23 04:57 .libs/opendkim [hjl@gnu-tools-1 opendkim]$ strip .libs/opendkim [hjl@gnu-tools-1 opendkim]$ ls -l .libs/opendkim -rwxrwxr-x 1 hjl hjl 471816 Apr 23 04:58 .libs/opendkim [hjl@gnu-tools-1 opendkim]$ -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18288] linker -s output suboptimal
https://sourceware.org/bugzilla/show_bug.cgi?id=18288 --- Comment #8 from H.J. Lu --- I can't reproduce it with your binary, using binutils mastet branch on Fedora 21. Both ld -s and strip gave me: -rwxr-xr-x 1 hjl hjl 471816 Apr 23 04:45 .libs/opendkim Please try binutils master branch. If you still has the issue, please provide ALL linker inputs, including glibc, and run them with the command # ld --verbose . by hand to verify that nothing from /lib, /lib64, /usr is used. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18288] linker -s output suboptimal
https://sourceware.org/bugzilla/show_bug.cgi?id=18288 --- Comment #7 from H.J. Lu --- (In reply to dilyan.palau...@aegee.org from comment #6) > Installing libstrl http://ohnopub.net/~ohnobinki/libstrl/ shall help to > find strlcat() and strlcpy(). > > I have compressed the whole build-tree from my computer and uploaded it > under http://mail.aegee.org/dpa/bz18288/ . Please provide ALL input files to linker so that I can regenerate opendkim myself. Please all libraries. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18288] linker -s output suboptimal
https://sourceware.org/bugzilla/show_bug.cgi?id=18288 --- Comment #6 from dilyan.palauzov at aegee dot org --- Installing libstrl http://ohnopub.net/~ohnobinki/libstrl/ shall help to find strlcat() and strlcpy(). I have compressed the whole build-tree from my computer and uploaded it under http://mail.aegee.org/dpa/bz18288/ . -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18288] linker -s output suboptimal
https://sourceware.org/bugzilla/show_bug.cgi?id=18288 --- Comment #5 from H.J. Lu --- (In reply to dilyan.palau...@aegee.org from comment #3) > ./configure --enable-diffheaders --enable-identity_header > --enable-ldap_caching --enable-rate_limit --enable-replace_rules > --enable-resign --enable-stats --enable-statsext --enable-rbl --enable-vbr > --with-db --with-db-incdir=/usr/include/ --with-db-libdir=/usr/lib > --with-tre --with-milter --with-libmemcached --with-gnutls --with-sasl > --with-unbound --with-lua --with-odbx --enable-query_cache --with-libcurl It doesn't build on Fedora 21: checking for library containing strlcat... (cached) no checking for library containing strlcpy... (cached) no configure: error: no strlcpy/strlcat found Makefile:75: recipe for target 'config' failed -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18288] linker -s output suboptimal
https://sourceware.org/bugzilla/show_bug.cgi?id=18288 --- Comment #4 from dilyan.palauzov at aegee dot org --- You can find the unstripped binary under http://mail.aegee.org/dpa/bz18288/ . -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18288] linker -s output suboptimal
https://sourceware.org/bugzilla/show_bug.cgi?id=18288 --- Comment #3 from dilyan.palauzov at aegee dot org --- ./configure --enable-diffheaders --enable-identity_header --enable-ldap_caching --enable-rate_limit --enable-replace_rules --enable-resign --enable-stats --enable-statsext --enable-rbl --enable-vbr --with-db --with-db-incdir=/usr/include/ --with-db-libdir=/usr/lib --with-tre --with-milter --with-libmemcached --with-gnutls --with-sasl --with-unbound --with-lua --with-odbx --enable-query_cache --with-libcurl -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18288] linker -s output suboptimal
https://sourceware.org/bugzilla/show_bug.cgi?id=18288 --- Comment #2 from dilyan.palauzov at aegee dot org --- The numbers I provide are based on compling opendkim (git://opendkim.git.sourceforge.net/gitroot/opendkim/opendkim, commit 17c06376ba1c589) with gcc 4.9.2 64bit CFLAGS="-pipe -O3 -fno-fat-lto-objects -flto" CXXFLAGS="-pipe -O3 -fno-fat-lto-objects -flto" LDFLAGS="-Wl,-O1 -Wl,-z,relro -Wl,-s" -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18288] linker -s output suboptimal
https://sourceware.org/bugzilla/show_bug.cgi?id=18288 H.J. Lu changed: What|Removed |Added Status|NEW |WAITING CC||hjl.tools at gmail dot com --- Comment #1 from H.J. Lu --- Works for me on a simple program. Please provide a testcase. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18288] linker -s output suboptimal
https://sourceware.org/bugzilla/show_bug.cgi?id=18288 Jevin Sweval changed: What|Removed |Added CC||jsweval at arxan dot com -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils