[Bug binutils/32460] section `.note.gnu.property' can't be allocated in segment 0

2024-12-17 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32460 --- Comment #4 from Stas Sergeev --- Created attachment 15850 --> https://sourceware.org/bugzilla/attachment.cgi?id=15850&action=edit my ld.bfd (In reply to H.J. Lu from comment #3) > Which linker were you using? I tried, ld, lld, gold and

[Bug binutils/32460] section `.note.gnu.property' can't be allocated in segment 0

2024-12-17 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32460 --- Comment #7 from Stas Sergeev --- Created attachment 15851 --> https://sourceware.org/bugzilla/attachment.cgi?id=15851&action=edit my libs It is a fedora linker indeed. -- You are receiving this mail because: You are on the CC list for

[Bug binutils/32460] section `.note.gnu.property' can't be allocated in segment 0

2024-12-18 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32460 --- Comment #11 from Stas Sergeev --- (In reply to H.J. Lu from comment #3) > Which linker were you using? I tried, ld, lld, gold and mold. All worked. Complete off-topic: this is the first time I've heard of mold. Having the new linker is e

[Bug binutils/32460] section `.note.gnu.property' can't be allocated in segment 0

2024-12-18 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32460 --- Comment #12 from Stas Sergeev --- Ok, mold simply doesn't support linker scripts. Whether or not it supports STT_RELC is probably then irrelevant. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/32463] linker script variables always go to ABS section

2024-12-19 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32463 --- Comment #2 from Stas Sergeev --- Hi Nick. I probably forgot to mention the most important thing. If you change: TTT = .; _LGROUP = TTT; into: _LGROUP = .; then suddenly bfg linker gives: R _LGROUP ... same as lld. So the bug

[Bug binutils/32463] linker script variables always go to ABS section

2024-12-19 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32463 --- Comment #4 from Stas Sergeev --- (In reply to Nick Clifton from comment #3) > I think that this is probably a case where it would be very unwise to change > the behaviour of the linker - since there are bound to be scripts that > depend u

[Bug binutils/32463] linker script variables always go to ABS section

2024-12-19 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32463 --- Comment #5 from Stas Sergeev --- (In reply to Nick Clifton from comment #1) > If you change the kernel.ld script to look like this: > > SECTIONS > { > TTT = .; > #SHOULD_FAIL = . + .; > . = SIZEOF_HEADERS; > . = ALIGN(

[Bug binutils/32463] linker script variables always go to ABS section

2024-12-20 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32463 --- Comment #7 from Stas Sergeev --- (In reply to Nick Clifton from comment #6) > Oh well, I will look into it next year ... :-} Omg. :) Happy New year! This problem is not fatal for me, it just popped up as a result of a routine testing (as

[Bug ld/32787] --build-id produces broken elf

2025-03-14 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=32787 --- Comment #4 from Stas Sergeev --- Thanks for the quick fix! -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/32787] New: --build-id produces broken elf

2025-03-12 Thread stsp at users dot sourceforge.net
Assignee: unassigned at sourceware dot org Reporter: stsp at users dot sourceforge.net Target Milestone: --- Created attachment 15993 --> https://sourceware.org/bugzilla/attachment.cgi?id=15993&action=edit test case Attached is a test case. Please run test.sh: $ ./

[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/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] New: --as-needed breaks linking

2025-05-09 Thread stsp at users dot sourceforge.net
Assignee: unassigned at sourceware dot org Reporter: stsp at users dot sourceforge.net Target Milestone: --- Created attachment 16077 --> https://sourceware.org/bugzilla/attachment.cgi?id=16077&action=edit test case Here is the fully automated test-case, just run `make`: c

[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 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 #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 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

<    1   2