[Bug ld/27441] Small inconsistency in between gold and bfd

2021-03-09 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 --- Comment #21 from Fangrui Song --- I made a mistake in #comment 16. In GNU ld, the rule is probably: * it is linked at least once in `--no-as-needed` mode (i.e. `--as-needed a.so --no-as-needed a.so` => needed) * or it has a definition

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-03-09 Thread matz at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 --- Comment #20 from Michael Matz --- (In reply to Cary Coutant from comment #18) > > > My understanding of when a shared object is needed: > > > > > > * it is linked at least once in --no-as-needed mode (i.e. --as-needed a.so > > >

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-03-08 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 Alan Modra changed: What|Removed |Added Target Milestone|--- |2.37 Resolution|---

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-03-08 Thread ccoutant at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 Cary Coutant changed: What|Removed |Added CC||ccoutant at gmail dot com --- Comment

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-03-08 Thread matz at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 --- Comment #17 from Michael Matz --- (In reply to Fangrui Song from comment #16) > (In reply to Alan Modra from comment #12) > > (In reply to Michael Matz from comment #11) > > > Yes, I thought so as well, until I read ELF.txt again :) > >

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-03-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #16

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-02-28 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 --- Comment #15 from cvs-commit at gcc dot gnu.org --- The binutils-2_36-branch branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e3316baf921523e884731f5c7b547bc9362039e5 commit

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-02-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 --- Comment #14 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bfece7562d62f11782ca7089310b4063be526fb2 commit

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-02-24 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 --- Comment #13 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bbaddd4bbeba65200ee805d87c2e3a845842e3eb commit

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-02-24 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 --- Comment #12 from Alan Modra --- (In reply to Michael Matz from comment #11) > Yes, I thought so as well, until I read ELF.txt again :) Huh, I can hardly believe I was making such a completely wrong assumption. How stupid is that? I

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-02-24 Thread matz at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 --- Comment #11 from Michael Matz --- (In reply to Alan Modra from comment #8) > (In reply to Michael Matz from comment #3) > > % gcc -fPIC -Wl,--as-needed -fno-lto -shared -o good.so bad4.c -L. -l2 -l1 > > % readelf-dW good.so | grep lib >

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-02-24 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 --- Comment #10 from Alan Modra --- Created attachment 13259 --> https://sourceware.org/bugzilla/attachment.cgi?id=13259=edit patch under test -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-02-23 Thread rguenth at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org ---

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-02-23 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 Alan Modra changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-02-23 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-02-23 Thread matz at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 --- Comment #6 from Michael Matz --- Probably just one more corner case (the last one!) ;-) -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-02-23 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 --- Comment #5 from Martin Liska --- The issue started with: commit b1a92c635c1ec10fd703302ce1fc4ab3a8515a04 Author: Alan Modra Date: Fri Oct 30 14:56:35 2020 +1030 PR26806, Suspected linker bug with LTO This patch reverts most

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-02-23 Thread matz at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 --- Comment #4 from Michael Matz --- (I've now verified that it doesn't happen with older binutils (2.26 :) ) but does with 2.36, with otherwise same toolchain (some random gcc-9 compiler), so it's not any gcc component) -- You are

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-02-23 Thread matz at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 Michael Matz changed: What|Removed |Added Assignee|ccoutant at gmail dot com |unassigned at sourceware dot