[Bug ld/28875] ld should warn or error out about creating copy relocs & direct external references for protected symbols

2022-02-11 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28875 H.J. Lu changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug ld/28875] ld should warn or error out about creating copy relocs & direct external references for protected symbols

2022-02-11 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=28875 --- Comment #7 from cvs-commit at gcc dot gnu.org --- The binutils-2_38-branch branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=caa6172de4b5100c9b45fd03eae714167a6085c1 commit

[Bug ld/28875] ld should warn or error out about creating copy relocs & direct external references for protected symbols

2022-02-11 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=28875 --- Comment #6 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ebb191adac4ab45498dec0bfaac62f0a33537ba4 commit

[Bug ld/28875] ld should warn or error out about creating copy relocs & direct external references for protected symbols

2022-02-11 Thread thiago at kde dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=28875 --- Comment #5 from Thiago Macieira --- (In reply to H.J. Lu from comment #4) > Created attachment 13971 [details] > The v2 patch > > I got > > /usr/gcc-12.0.1-x32/bin/gcc -B./ -o x main.o libfoo.so -Wl,-R,. > ./ld: main.o: non-canonical

[Bug ld/28875] ld should warn or error out about creating copy relocs & direct external references for protected symbols

2022-02-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28875 H.J. Lu changed: What|Removed |Added Attachment #13964|0 |1 is obsolete|

[Bug ld/28875] ld should warn or error out about creating copy relocs & direct external references for protected symbols

2022-02-10 Thread thiago at kde dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=28875 --- Comment #3 from Thiago Macieira --- That is, this patch brings BFD ld on par with Gold. The remaining issue for Gold is #28876. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/28875] ld should warn or error out about creating copy relocs & direct external references for protected symbols

2022-02-10 Thread thiago at kde dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=28875 --- Comment #2 from Thiago Macieira --- (In reply to H.J. Lu from comment #1) > Created attachment 13964 [details] > A patch > > Try this. Confirmed for copy relocations: $ cat main.cpp extern __attribute__((visibility("default"))) long

[Bug ld/28875] ld should warn or error out about creating copy relocs & direct external references for protected symbols

2022-02-09 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28875 H.J. Lu changed: What|Removed |Added Target Milestone|--- |2.39 -- You are receiving this mail

[Bug ld/28875] ld should warn or error out about creating copy relocs & direct external references for protected symbols

2022-02-09 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28875 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug ld/28875] ld should warn or error out about creating copy relocs & direct external references for protected symbols

2022-02-09 Thread pinskia at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=28875 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug ld/28875] ld should warn or error out about creating copy relocs & direct external references for protected symbols

2022-02-09 Thread pinskia at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=28875 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org

[Bug ld/28875] ld should warn or error out about creating copy relocs & direct external references for protected symbols

2022-02-09 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28875 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com -- You are