[Bug binutils/20343] Document how to use LTO

2016-07-10 Thread dilyan.palauzov at aegee dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20343 --- Comment #3 from dilyan.palauzov at aegee dot org --- The bfd-plugins directory is not documented. Doing "gcc -c t.c" "strace nm --plugin=liblto_plugin.so.0.0.0 t.o" does not show that the bfd-plugins directory is checked, nor does "strace

[Bug binutils/20343] Document how to use LTO

2016-07-10 Thread markus at trippelsdorf dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=20343 --- Comment #4 from Markus Trippelsdorf --- There is no need to use an explicit --plugin option. On my system: % strace ar cr a.a a.o ... open("/usr/x86_64-pc-linux-gnu/binutils-bin/git/../git/../lib/bfd-plugins", O_RDONLY|O_NONBLOCK|O_DIRE

[Bug binutils/20343] Document how to use LTO

2016-07-10 Thread markus at trippelsdorf dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=20343 --- Comment #5 from Markus Trippelsdorf --- And plaese configure binutils with: --enable-plugins -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing

[Bug gold/20346] New: Modify "gold --help" to show if "-z relro" is enabled by default

2016-07-10 Thread dilyan.palauzov at aegee dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20346 Bug ID: 20346 Summary: Modify "gold --help" to show if "-z relro" is enabled by default Product: binutils Version: unspecified Status: UNCONFIRMED Severity:

[Bug binutils/20343] Document how to use LTO

2016-07-10 Thread dilyan.palauzov at aegee dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20343 --- Comment #6 from dilyan.palauzov at aegee dot org --- I had --enable-plugins. "strace ar csr ... &|grep bfd" prints openat(AT_FDCWD, "../bin/../lib/bfd-plugins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or dire

[Bug binutils/20343] Document how to use LTO

2016-07-10 Thread dilyan.palauzov at aegee dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20343 --- Comment #7 from dilyan.palauzov at aegee dot org --- The part with bfd/plugin.c was a false alarm. The problem was, that I had the change below, which was supposed to fix these warnings, when I compile binutils with -flto (cf. https://gcc