[Bug gprofng/32241] gprofng can't be built with LTO

2024-10-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 --- Comment #10 from H.J. Lu --- Created attachment 15731 --> https://sourceware.org/bugzilla/attachment.cgi?id=15731&action=edit A patch Try this. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gprofng/32241] gprofng can't be built with LTO

2024-10-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 --- Comment #9 from H.J. Lu --- (In reply to H.J. Lu from comment #8) > To build gprofng with LTO, util.o should't be in archive. It should be dbe_memmgr.o, not util.o. -- You are receiving this mail because: You are on the CC list for the

[Bug gprofng/32241] gprofng can't be built with LTO

2024-10-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 H.J. Lu changed: What|Removed |Added Component|ld |gprofng Summary|Binutils can't b

[Bug gprofng/32095] Add support for building gprofng with ubsan

2024-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32095 Sam James changed: What|Removed |Added Blocks|32092 | See Also|

[Bug ld/32241] Binutils can't build itself with -flto=auto -ffat-lto-objects (fails in gprofng, dbe_memmgr.c:(.text+0x11): undefined reference to `get_prog_name')

2024-10-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 --- Comment #8 from H.J. Lu --- To build gprofng with LTO, util.o should't be in archive. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gprofng/32092] gprofng testsuite fails with -flto (ERROR: comparison of results in synprog failed)

2024-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32092 Sam James changed: What|Removed |Added Depends on|32095 | See Also|

[Bug ld/32241] Binutils can't build itself with -flto=auto -ffat-lto-objects (fails in gprofng, dbe_memmgr.c:(.text+0x11): undefined reference to `get_prog_name')

2024-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 Sam James changed: What|Removed |Added Summary|Binutils can't build itself |Binutils can't build itself

[Bug ld/32241] Binutils can't build itself with -flto=auto -ffat-lto-objects

2024-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 --- Comment #7 from Sam James --- This also explains why I struggled to reduce it before: it's sensitive to whether GCC can fold the builtins or not. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/32242] LTO doesn't work with wrappers of GCC builtin functions in archive

2024-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32242 Sam James changed: What|Removed |Added CC||sam at gentoo dot org -- You are receivi

[Bug ld/32242] LTO doesn't work with wrappers of GCC builtin functions in archive

2024-10-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32242 H.J. Lu changed: What|Removed |Added Blocks||32241 Referenced Bugs: https://sourceware

[Bug ld/32241] Binutils can't build itself with -flto=auto -ffat-lto-objects

2024-10-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 H.J. Lu changed: What|Removed |Added Depends on||32242 Referenced Bugs: https://sourceware

[Bug ld/32241] Binutils can't build itself with -flto=auto -ffat-lto-objects

2024-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 Sam James changed: What|Removed |Added Blocks||32092 --- Comment #6 from Sam James ---

[Bug gprofng/32092] gprofng testsuite fails with -flto (ERROR: comparison of results in synprog failed)

2024-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32092 Sam James changed: What|Removed |Added Depends on||32241 Referenced Bugs: https://sourcewa

[Bug ld/32242] LTO doesn't work with wrappers of GCC builtin functions in archive

2024-10-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32242 H.J. Lu changed: What|Removed |Added Summary|LTO doesn't work with |LTO doesn't work with |wr

[Bug ld/32242] New: LTO doesn't work with wrappers of GCC builtin functions

2024-10-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32242 Bug ID: 32242 Summary: LTO doesn't work with wrappers of GCC builtin functions Product: binutils Version: 2.44 (HEAD) Status: NEW Severity: normal

[Bug ld/32241] Binutils can't build itself with -flto=auto -ffat-lto-objects

2024-10-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 --- Comment #5 from H.J. Lu --- When -ffat-lto-objects isn't used, the LTO build ignores util.o when linking gp-archive and the malloc wrappers are unused. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/23935] [Regression] ld.bfd does not rescan fat LTO archives to resolve plugin-added references

2024-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23935 Sam James changed: What|Removed |Added See Also||https://sourceware.org/bugz

[Bug ld/32241] Binutils can't build itself with -flto=auto -ffat-lto-objects

2024-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 Sam James changed: What|Removed |Added Assignee|vladimir.mezentsev at oracle dot c |unassigned at sourceware dot org

[Bug gprofng/32241] Binutils can't build itself with -flto=auto -ffat-lto-objects

2024-10-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 --- Comment #4 from H.J. Lu --- The problem is that the fat IR archive member isn't re-scanned because of PR 23935. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gprofng/32241] Binutils can't build itself with -flto=auto -ffat-lto-objects

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

Re: Issue 371546806: binutils:fuzz_nm: Null-dereference READ in bfd_hash_lookup

2024-10-05 Thread buganizer-system
Replying to this email means your email address will be shared with the team that works on this product. https://issues.oss-fuzz.com/issues/371546806 Changed Disclosure: → Jan 3, 2025 ___ Reference Info: 371546806 binutils:fuzz_nm: Null-dereference READ in bfd_hash

Re: Issue 371292575: binutils:fuzz_objdump: Null-dereference READ in _bfd_x86_elf_get_synthetic_symtab

2024-10-05 Thread buganizer-system
Replying to this email means your email address will be shared with the team that works on this product. https://issues.oss-fuzz.com/issues/371292575 Changed access level: Limited visibility → Default access pe...@google.com added comment #3: This bug has been fixed. It has been opened to the

Re: Issue 371445188: binutils:fuzz_dlltool: Null-dereference READ in scan_open_obj_file

2024-10-05 Thread buganizer-system
Replying to this email means your email address will be shared with the team that works on this product. https://issues.oss-fuzz.com/issues/371445188 Changed access level: Limited visibility → Default access pe...@google.com added comment #3: This bug has been fixed. It has been opened to the

Re: Issue 371233016: binutils:fuzz_nm: Null-dereference READ in _bfd_elf_is_local_label_name

2024-10-05 Thread buganizer-system
Replying to this email means your email address will be shared with the team that works on this product. https://issues.oss-fuzz.com/issues/371233016 Changed access level: Limited visibility → Default access pe...@google.com added comment #3: This bug has been fixed. It has been opened to the

[Bug binutils/32238] Performance issues found from binutils version '2.36' version with function 'lang_output_section_statement_lookup'

2024-10-05 Thread kumar.naveen099 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32238 --- Comment #9 from Naveen Kumar --- Created attachment 15730 --> https://sourceware.org/bugzilla/attachment.cgi?id=15730&action=edit main.ii preprocessed file. Please check the attachment for preprocessed main.ii file. -- You are receivi

Issue 371546806: binutils:fuzz_nm: Null-dereference READ in bfd_hash_lookup

2024-10-05 Thread buganizer-system
Replying to this email means your email address will be shared with the team that works on this product. https://issues.oss-fuzz.com/issues/371546806 Reference Info: 371546806 binutils:fuzz_nm: Null-dereference READ in bfd_hash_lookup component: Public Trackers > 1362134 > OSS Fuzz status: New

Re: Issue 371445188: binutils:fuzz_dlltool: Null-dereference READ in scan_open_obj_file

2024-10-05 Thread buganizer-system
Replying to this email means your email address will be shared with the team that works on this product. https://issues.oss-fuzz.com/issues/371445188 Changed status: New → Verified assignee: → cl...@appspot.gserviceaccount.com verifier: → cl...@appspot.gserviceaccount.com 87...@developer.gs

Re: Issue 371292575: binutils:fuzz_objdump: Null-dereference READ in _bfd_x86_elf_get_synthetic_symtab

2024-10-05 Thread buganizer-system
Replying to this email means your email address will be shared with the team that works on this product. https://issues.oss-fuzz.com/issues/371292575 Changed status: New → Verified assignee: → cl...@appspot.gserviceaccount.com verifier: → cl...@appspot.gserviceaccount.com 87...@developer.gs

[Bug binutils/32238] Performance issues found from binutils version '2.36' version with function 'lang_output_section_statement_lookup'

2024-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32238 --- Comment #8 from Sam James --- (In reply to Naveen Kumar from comment #5) > Created attachment 15728 [details] > main.cpp source file. Can you give this preprocessed (use -save-temps or whatever, then main.ii)? -- You are receiving this

[Bug gprofng/32241] Binutils can't build itself with -flto=auto -ffat-lto-objects

2024-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 --- Comment #2 from Sam James --- OK, it isn't inline: char * get_prog_name (int basename) { char *nm = NULL; if (theApplication) { nm = theApplication->get_name (); if (nm && basename) nm = get_basename (nm);

[Bug gprofng/32241] Binutils can't build itself with -flto=auto -ffat-lto-objects

2024-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 Sam James changed: What|Removed |Added Component|ld |gprofng CC|

Re: Issue 371233016: binutils:fuzz_nm: Null-dereference READ in _bfd_elf_is_local_label_name

2024-10-05 Thread buganizer-system
Replying to this email means your email address will be shared with the team that works on this product. https://issues.oss-fuzz.com/issues/371233016 Changed status: New → Verified assignee: → cl...@appspot.gserviceaccount.com verifier: → cl...@appspot.gserviceaccount.com 87...@developer.gs

[Bug binutils/32238] Performance issues found from binutils version '2.36' version with function 'lang_output_section_statement_lookup'

2024-10-05 Thread kumar.naveen099 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32238 --- Comment #7 from Naveen Kumar --- Host & Target: x86_64 I've been able to repro a ~10x slowdown between 2.29 and 2.36 using open-source LLVM. 1) Download LLVM 19.1.0 sources from https://github.com/llvm/llvm-project/releases/download/llvm

[Bug binutils/32238] Performance issues found from binutils version '2.36' version with function 'lang_output_section_statement_lookup'

2024-10-05 Thread kumar.naveen099 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32238 --- Comment #6 from Naveen Kumar --- Created attachment 15729 --> https://sourceware.org/bugzilla/attachment.cgi?id=15729&action=edit Makefile to build. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/32238] Performance issues found from binutils version '2.36' version with function 'lang_output_section_statement_lookup'

2024-10-05 Thread kumar.naveen099 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32238 --- Comment #5 from Naveen Kumar --- Created attachment 15728 --> https://sourceware.org/bugzilla/attachment.cgi?id=15728&action=edit main.cpp source file. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/32241] New: Binutils can't build itself with -flto=auto -ffat-lto-objects

2024-10-05 Thread lantw44 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32241 Bug ID: 32241 Summary: Binutils can't build itself with -flto=auto -ffat-lto-objects Product: binutils Version: 2.44 (HEAD) Status: UNCONFIRMED Severity: nor