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
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
> > >
https://sourceware.org/bugzilla/show_bug.cgi?id=27441
Alan Modra changed:
What|Removed |Added
Target Milestone|--- |2.37
Resolution|---
https://sourceware.org/bugzilla/show_bug.cgi?id=27441
Cary Coutant changed:
What|Removed |Added
CC||ccoutant at gmail dot com
--- Comment
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 :)
> >
https://sourceware.org/bugzilla/show_bug.cgi?id=27441
Fangrui Song changed:
What|Removed |Added
CC||i at maskray dot me
--- Comment #16
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
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
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
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
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
>
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.
https://sourceware.org/bugzilla/show_bug.cgi?id=27441
Richard Biener changed:
What|Removed |Added
CC||rguenth at gcc dot gnu.org
---
https://sourceware.org/bugzilla/show_bug.cgi?id=27441
Alan Modra changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned
https://sourceware.org/bugzilla/show_bug.cgi?id=27441
H.J. Lu changed:
What|Removed |Added
Ever confirmed|0 |1
Last reconfirmed|
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.
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
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
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
19 matches
Mail list logo