[Bug ld/26806] Suspected linker bug with LTO

2020-10-29 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26806 --- Comment #8 from Alan Modra --- Created attachment 12931 --> https://sourceware.org/bugzilla/attachment.cgi?id=12931&action=edit patch under test This should do what I intended for git commit 1e3b96fd6cf. Please show it to be broken it

[Bug ld/26806] Suspected linker bug with LTO

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26806 --- Comment #7 from H.J. Lu --- (In reply to Alan Modra from comment #6) > (In reply to H.J. Lu from comment #1) > > This regression was introduced on purpose by > That's not exactly true. The as-needed library was supposed to marked > needed

[Bug ld/26815] Unnecessary error on linking STV_PROTECTED library: relocation R_X86_64_PC32 against protected symbol `f' can not be used when making a shared object

2020-10-29 Thread thiago at kde dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=26815 --- Comment #6 from Thiago Macieira --- A bit more testing shows that we'd need a compiler update too, to tell the compiler that a variable should be accessed via the GOT regardless (equiv. to Windows __declspec(dllimport)). We can accomplish

[Bug ld/26815] Unnecessary error on linking STV_PROTECTED library: relocation R_X86_64_PC32 against protected symbol `f' can not be used when making a shared object

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26815 --- Comment #5 from H.J. Lu --- (In reply to Thiago Macieira from comment #4) > (In reply to H.J. Lu from comment #3) > > GOT relocation is needed for function pointer comparison. > > > > > Either way, the fact that gold and ld.bfd behave dif

[Bug ld/26806] Suspected linker bug with LTO

2020-10-29 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26806 Alan Modra changed: What|Removed |Added Status|REOPENED|ASSIGNED -- You are receiving this mail

[Bug ld/26806] Suspected linker bug with LTO

2020-10-29 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26806 Alan Modra changed: What|Removed |Added Resolution|DUPLICATE |--- Status|RESOLVED

[Bug ld/26815] Unnecessary error on linking STV_PROTECTED library: relocation R_X86_64_PC32 against protected symbol `f' can not be used when making a shared object

2020-10-29 Thread thiago at kde dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=26815 --- Comment #4 from Thiago Macieira --- (In reply to H.J. Lu from comment #3) > GOT relocation is needed for function pointer comparison. > > > Either way, the fact that gold and ld.bfd behave different is a problem. And > > so is the fact th

[Bug ld/26806] Suspected linker bug with LTO

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26806 --- Comment #5 from H.J. Lu --- (In reply to Alan Modra from comment #4) > > So this whole thing is a bit of a mess. Reverting my patches and applying > HJ's might work as a quick solution, but do please check out Jeff's testcase. Jeff's tes

[Bug ld/26806] Suspected linker bug with LTO

2020-10-29 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26806 Alan Modra changed: What|Removed |Added CC||law at redhat dot com -- You are receiv

[Bug ld/26806] Suspected linker bug with LTO

2020-10-29 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26806 --- Comment #4 from Alan Modra --- (In reply to Nick Clifton from comment #2) > I am hoping that Alan will review the patch, but just FYI it is working for > me in rawhide. There is an email thread on that subject. I committed a couple of pat

[Bug ld/26815] Unnecessary error on linking STV_PROTECTED library: relocation R_X86_64_PC32 against protected symbol `f' can not be used when making a shared object

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26815 --- Comment #3 from H.J. Lu --- (In reply to Thiago Macieira from comment #2) > (In reply to H.J. Lu from comment #1) > > You can override it with linker options: > > > > -Bsymbolic Bind global references locally > > -Bsy

[Bug ld/26815] Unnecessary error on linking STV_PROTECTED library: relocation R_X86_64_PC32 against protected symbol `f' can not be used when making a shared object

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26815 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug ld/26815] Unnecessary error on linking STV_PROTECTED library: relocation R_X86_64_PC32 against protected symbol `f' can not be used when making a shared object

2020-10-29 Thread thiago at kde dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=26815 --- Comment #2 from Thiago Macieira --- (In reply to H.J. Lu from comment #1) > You can override it with linker options: > > -Bsymbolic Bind global references locally > -Bsymbolic-functionsBind global function ref

[Bug ld/26815] Unnecessary error on linking STV_PROTECTED library: relocation R_X86_64_PC32 against protected symbol `f' can not be used when making a shared object

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26815 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com -- You are rece

[Bug ld/26815] New: Unnecessary error on linking STV_PROTECTED library: relocation R_X86_64_PC32 against protected symbol `f' can not be used when making a shared object

2020-10-29 Thread thiago at kde dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=26815 Bug ID: 26815 Summary: Unnecessary error on linking STV_PROTECTED library: relocation R_X86_64_PC32 against protected symbol `f' can not be used when making a shared object

[Bug binutils/26809] nm-new : heap-buffer-overflow in bfd_getl_signed_64

2020-10-29 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26809 Nick Clifton changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug binutils/26809] nm-new : heap-buffer-overflow in bfd_getl_signed_64

2020-10-29 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26809 --- Comment #2 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Nick Clifton : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8ee54925b48985e8e7102221e698bf50b800dd81 commit 8ee54925b48985e8e7102221e69

[Bug binutils/26803] c++filt fails to demangle a C++ symbol

2020-10-29 Thread yuri at tsoft dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26803 yuri at tsoft dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--

[Bug binutils/26809] nm-new : heap-buffer-overflow in bfd_getl_signed_64

2020-10-29 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26809 Nick Clifton changed: What|Removed |Added CC||nickc at redhat dot com St

[Bug binutils/26809] nm-new : heap-buffer-overflow in bfd_getl_signed_64

2020-10-29 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26809 Nick Clifton changed: What|Removed |Added Assignee|unassigned at sourceware dot org |nickc at redhat dot com -- You

[Bug ld/26806] Suspected linker bug with LTO

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26806 --- Comment #3 from H.J. Lu --- The patch was posted at https://sourceware.org/pipermail/binutils/2020-September/113227.html -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/26808] [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 --- Comment #12 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=76868f3606fb9de04f49c441c1e3cdd3e943a34d commit 76868f3606fb9de04f49c441c1e3cdd

[Bug binutils/26808] [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 --- Comment #11 from Mark Wielaard --- (In reply to H.J. Lu from comment #10) > A patch is posted at > > https://sourceware.org/pipermail/binutils/2020-October/113938.html Thanks. I get what is going on now. This isn't a normal .dwo file, it

[Bug ld/26806] Suspected linker bug with LTO

2020-10-29 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26806 Nick Clifton changed: What|Removed |Added CC||nickc at redhat dot com --- Comment #2

[Bug binutils/26808] [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 H.J. Lu changed: What|Removed |Added Target Milestone|--- |2.36 --- Comment #10 from H.J. Lu --- A pa

[Bug binutils/26808] [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 --- Comment #9 from H.J. Lu --- It has multiple CUs: Compilation Unit @ offset 0x0: Compilation Unit @ offset 0x17c: Compilation Unit @ offset 0x72f: Compilation Unit @ offset 0x7fe: Compilation Unit @ offset 0x0: Compilation Unit

[Bug binutils/26808] [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 --- Comment #8 from H.J. Lu --- DWO sections have 2 parts: Section contributions: .debug_abbrev.dwo: 0x0 0x154 .debug_line.dwo: 0x0 0x40 .debug_loc.dwo: 0x0 0x0 .debug_str_offsets.dwo: 0x0 0x14 a

[Bug binutils/26808] [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 --- Comment #7 from H.J. Lu --- DWO processing is broken. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/26808] [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 H.J. Lu changed: What|Removed |Added Status|WAITING |NEW -- You are receiving this mail because

[Bug binutils/26808] [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 --- Comment #6 from H.J. Lu --- (In reply to H.J. Lu from comment #5) > Before the commit, process_abbrev_section is call twice with different > start and end. The result from the fist one is dropped. The first call is for the .debug_info.dw

[Bug binutils/26808] [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 --- Comment #5 from H.J. Lu --- Before the commit, process_abbrev_section is call twice with different start and end. The result from the fist one is dropped. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/26808] [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 --- Comment #4 from H.J. Lu --- (In reply to Mark Wielaard from comment #3) > (In reply to Nick Clifton from comment #1) > > Hmm, I think that maybe the test file is corrupt. The elfutils version of > > readelf appears to support this: > > >

[Bug binutils/26808] [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 Mark Wielaard changed: What|Removed |Added CC||mark at klomp dot org --- Comment #3

[Bug binutils/26808] [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 --- Comment #2 from H.J. Lu --- process_abbrev_set is changed from - <1><209>: Abbrev Number: 13 (DW_TAG_class_type) <<< Before the commit + <1><209>: Abbrev Number: 13 (DW_TAG_subprogram) <<< After the commit -- You are receiving this mail

[Bug binutils/26808] [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 Nick Clifton changed: What|Removed |Added Status|NEW |WAITING --- Comment #1 from Nick Clift

[Bug binutils/26809] New: nm-new : heap-buffer-overflow in bfd_getl_signed_64

2020-10-29 Thread zodf0055980 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26809 Bug ID: 26809 Summary: nm-new : heap-buffer-overflow in bfd_getl_signed_64 Product: binutils Version: 2.36 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2

[Bug binutils/26808] New: [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26808 Bug ID: 26808 Summary: [2.36 Regression] readelf: Warning: DIE at offset 0x232 refers to abbreviation number 77 which does not exist Product: binutils Version:

[Bug ld/26806] Suspected linker bug with LTO

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26806 H.J. Lu changed: What|Removed |Added CC||amodra at gmail dot com Status|

[Bug ld/15146] Reference from dummy plugin symbol isn't removed

2020-10-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=15146 H.J. Lu changed: What|Removed |Added CC||jakub at redhat dot com --- Comment #7 from

[Bug binutils/26805] objcopy : global-buffer-overflow in objcopy.c:1274

2020-10-29 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26805 Nick Clifton changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug binutils/26805] objcopy : global-buffer-overflow in objcopy.c:1274

2020-10-29 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26805 --- Comment #1 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Nick Clifton : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=00c19b8e7879b5e256e7852bdac667466d7a42c2 commit 00c19b8e7879b5e256e7852bdac

[Bug binutils/26805] objcopy : global-buffer-overflow in objcopy.c:1274

2020-10-29 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26805 Nick Clifton changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED CC|

[Bug binutils/26803] c++filt fails to demangle a C++ symbol

2020-10-29 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26803 Nick Clifton changed: What|Removed |Added CC||nickc at redhat dot com --- Comment #1

[Bug ld/26806] Suspected linker bug with LTO

2020-10-29 Thread jakub at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26806 Jakub Jelinek changed: What|Removed |Added CC||hjl.tools at gmail dot com,

[Bug ld/26806] New: Suspected linker bug with LTO

2020-10-29 Thread jakub at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26806 Bug ID: 26806 Summary: Suspected linker bug with LTO Product: binutils Version: 2.35 Status: NEW Severity: normal Priority: P2 Component: ld Assigne

[Bug binutils/26805] New: objcopy : global-buffer-overflow in objcopy.c:1274

2020-10-29 Thread zodf0055980 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26805 Bug ID: 26805 Summary: objcopy : global-buffer-overflow in objcopy.c:1274 Product: binutils Version: 2.36 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2