[Bug ld/32950] --as-needed breaks linking

2025-05-09 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32950 --- Comment #10 from Stas Sergeev --- Hmm, seems it has --libs-only-l and --libs-only-other, so that works too. Thanks! -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/32942] Incorrect validation of DEBUG_S_INLINELINE version in pdb generation

2025-05-09 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32942 Sam James changed: What|Removed |Added CC||mark at harmstone dot com -- You are rec

[Bug ld/32950] --as-needed breaks linking

2025-05-09 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32950 --- Comment #9 from Stas Sergeev --- To clarify: I used to do LDFLAGS=`pkg-config --libs` because I though LDFLAGS supports both things. `pkg-config --libs` gives lots of ldflags, plus -lXX stuff. If we are to split this, it would be good if p

[Bug ld/32950] --as-needed breaks linking

2025-05-09 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32950 --- Comment #8 from Stas Sergeev --- Thanks, that seems to work. Unfortunately pkg-config doesn't have `--ldflags`, which is why I haven't done that initially. This is minor and can be ignored, but maybe you have the plans to add --ldflags to

[Bug ld/32950] --as-needed breaks linking

2025-05-09 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32950 --- Comment #7 from Sam James --- Thanks, this makes more sense now. Passing libraries in LDFLAGS is discouraged for exactly this reason. One is supposed to use LIBS or similar instead. -- You are receiving this mail because: You are on the

[Bug ld/32942] Incorrect validation of DEBUG_S_INLINELINE version in pdb generation

2025-05-09 Thread bc-info at styx dot cabel.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32942 Iouri Kharon changed: What|Removed |Added Attachment #16072|0 |1 is obsolete|

[Bug ld/32950] --as-needed breaks linking

2025-05-09 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32950 --- Comment #6 from Stas Sergeev --- So in my case I am providing (via LDFLAGS) a lib with an alternate implementation of the function checked with AC_CHECK_FUNC. This works with ld.lld, but fails with GNU ld, as configure then can't link it (

[Bug ld/32950] --as-needed breaks linking

2025-05-09 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32950 --- Comment #5 from Stas Sergeev --- The problem is not in a makefile, but in autotools itself. Consider this example performed on a plain "ncurses" source tree: LDFLAGS="-Wl,--as-needed -lgcc" ./configure configure passes because -lgcc is

[Bug binutils/29457] Consider making --disassembler-color=color default if terminal

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

[Bug binutils/32951] New: Support NO_COLOR for objdump

2025-05-09 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32951 Bug ID: 32951 Summary: Support NO_COLOR for objdump Product: binutils Version: 2.45 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils

[Bug ld/32950] --as-needed breaks linking

2025-05-09 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32950 --- Comment #4 from Sam James --- (In reply to Stas Sergeev from comment #2) > But I can't even change the link > order: configure puts LDFLAGS before > conftest.c, so all configure tests > start to fail when --as-needed is > added to LDFLAGS.

[Bug ld/32950] --as-needed breaks linking

2025-05-09 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32950 --- Comment #3 from Stas Sergeev --- Maybe gcc, when compiling directly from .c file, should put the intermediate object at the beginning of the linker cmdline? -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/32950] --as-needed breaks linking

2025-05-09 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32950 --- Comment #2 from Stas Sergeev --- But I can't even change the link order: configure puts LDFLAGS before conftest.c, so all configure tests start to fail when --as-needed is added to LDFLAGS. What would you suggest as a fix then? -- You a

[Bug gprofng/32892] source line level information not available with "-g -O2"

2025-05-09 Thread vladimir.mezentsev at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32892 --- Comment #8 from Vladimir Mezentsev --- In my build g++ generates Dwarf-4. In the attached gperf, g++ generated Dwarf-5. For DW_AT_ranges gprofng tries to read the .debug_ranges section, which is missing. -- You are receiving this mail b

[Bug ld/32950] --as-needed breaks linking

2025-05-09 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32950 Sam James changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug ld/32950] New: --as-needed breaks linking

2025-05-09 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32950 Bug ID: 32950 Summary: --as-needed breaks linking Product: binutils Version: 2.43.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld

[Bug gprofng/32892] source line level information not available with "-g -O2"

2025-05-09 Thread vladimir.mezentsev at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32892 Vladimir Mezentsev changed: What|Removed |Added Status|REOPENED|ASSIGNED --- Comment #7 from Vla

Issue 416633165: binutils:fuzz_as: Integer-overflow in size_inc_line_addr

2025-05-09 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/416633165 Reference Info: 416633165 binutils:fuzz_as: Integer-overflow in size_inc_line_addr component: Public Trackers > 1362134 > OSS Fuzz status: New re

Re: Issue 416633165: binutils:fuzz_as: Integer-overflow in size_inc_line_addr

2025-05-09 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/416633165 Changed Disclosure: → Aug 7, 2025 ___ Reference Info: 416633165 binutils:fuzz_as: Integer-overflow in size_inc_line

[Bug gold/16693] "exclude-libs" drops symbols that are exported through "dynamic-list" or "export-dynamic-symbol"

2025-05-09 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=16693 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #17 fr

[Bug ld/32443] ABS symbol value depends on its visibility

2025-05-09 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=32443 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #1 fro